working in ie9
parent
57411064f8
commit
ae81e86363
|
@ -1,6 +1,28 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<!-- All images created with SVG-edit - http://svg-edit.googlecode.com/ -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<g id="logo">
|
||||
<svg viewBox="0 0 16 16" version="1.1">
|
||||
<path id="svg_7" d="m-0.0965,16.1043l16.10001,-16.06917l-0.00001,16.06917l-16.1,0z" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="1.5" fill="#cccccc"/>
|
||||
|
@ -116,15 +138,10 @@
|
|||
>
|
||||
<path d="M 3 1 L 26 24 L 24 26 L 1 3 L 3 1 ZM 0 0 L 0 27 L 27 27 L 27 0 L 0 0 Z" fill="#2f2f2c"/>
|
||||
</svg>
|
||||
|
||||
|
||||
</g>
|
||||
|
||||
<g id="path">
|
||||
<svg id="eye-Page%201" viewBox="0 0 27 27" style="background-color:#ffffff00" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"
|
||||
x="0px" y="0px" width="27px" height="27px"
|
||||
>
|
||||
<svg id="eye-Page%201" viewBox="0 0 27 27" style="background-color:#ffffff00" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" x="0px" y="0px" width="27px" height="27px">
|
||||
<g id="Layer%201">
|
||||
<path fill="#2F2F2C" d="M0,0v27h27V0H0z M12.193,1.904c0-0.365,0.871,0,0.871,0v12.105c-0.509,0.18-0.871,0.664-0.871,1.233c0,0.722,0.585,1.305,1.307,1.305c0.722,0,1.307-0.583,1.307-1.305c0-0.569-0.362-1.054-0.871-1.233V1.904c0,0,0.871-0.365,0.871,0c0,6.811,5.226,11.677,5.226,11.677l-3.256,8.193h-6.552l-3.256-8.193C6.968,13.581,12.193,8.714,12.193,1.904z M7.839,25.258v-2.612h11.322v2.612H7.839z"/>
|
||||
</g>
|
||||
|
|
|
@ -97,14 +97,14 @@ $.fn.dragInput = function(cfg){
|
|||
}
|
||||
|
||||
this.updateCursor = function(){
|
||||
var value = parseFloat(this.value)
|
||||
var pos = (value*-1)/scale+cursorHeight
|
||||
$cursor.css("top", pos)
|
||||
var value = parseFloat(this.value);
|
||||
var pos = (value*-1)/scale+cursorHeight;
|
||||
$cursor.css("top", pos);
|
||||
}
|
||||
|
||||
this.start = function(e) {
|
||||
this.launch = function(e) {
|
||||
var selectedElems = canvas.getSelectedElems();
|
||||
if (isTouch) e = e.originalEvent.touches[0]
|
||||
if (isTouch) e = e.originalEvent.touches[0];
|
||||
var oy = e.pageY;
|
||||
var val = this.value;
|
||||
var el = this;
|
||||
|
@ -123,7 +123,7 @@ $.fn.dragInput = function(cfg){
|
|||
|
||||
.bind("mousedown touchstart", function(e){
|
||||
this.blur();
|
||||
this.start(e);
|
||||
this.launch(e);
|
||||
})
|
||||
|
||||
.bind("dblclick taphold", function(e) {
|
||||
|
|
|
@ -123,10 +123,10 @@
|
|||
<div class="menu">
|
||||
<div class="menu_title">Object</div>
|
||||
<div class="menu_list" id="object_menu">
|
||||
<div class="menu_item action_selected disabled" id="tool_move_top">Bring to Front <span class="shortcut">⌘⇧↑</span></div>
|
||||
<div class="menu_item action_selected disabled" id="tool_move_up">Bring Forward <span class="shortcut">⌘↑</span></div>
|
||||
<div class="menu_item action_selected disabled" id="tool_move_down">Send Backward <span class="shortcut">⌘↓</span></div>
|
||||
<div class="menu_item action_selected disabled" id="tool_move_bottom">Send to Back <span class="shortcut">⌘⇧↓</span></div>
|
||||
<div class="menu_item action_selected disabled" id="tool_move_top">Bring to Front <span class="shortcut">⌘⇧↑</span></div>
|
||||
<div class="menu_item action_selected disabled" id="tool_move_up">Bring Forward <span class="shortcut">⌘↑</span></div>
|
||||
<div class="menu_item action_selected disabled" id="tool_move_down">Send Backward <span class="shortcut">⌘↓</span></div>
|
||||
<div class="menu_item action_selected disabled" id="tool_move_bottom">Send to Back <span class="shortcut">⌘⇧↓</span></div>
|
||||
<div class="separator"></div>
|
||||
<div class="menu_item action_multi_selected disabled" id="tool_group">Group Elements <span class="shortcut">⌘G</span></div>
|
||||
<div class="menu_item action_group_selected disabled" id="tool_ungroup">Ungroup Elements <span class="shortcut">⌘⇧G</span></div>
|
||||
|
@ -322,7 +322,7 @@
|
|||
<div class="caret"></div>
|
||||
<input id="font_family" data-title="Change Font Family" size="12" type="hidden" />
|
||||
<select id="font_family_dropdown">
|
||||
<option value="Helvetica, Arial, sans-serif" selected>Helvetica</option>
|
||||
<option value="Helvetica, Arial, sans-serif" selected="selected">Helvetica</option>
|
||||
<!--<option value="Arvo, sans-serif">Arvo</option>
|
||||
<option value="Euphoria, sans-serif">Euphoria</option>
|
||||
<option value="Oswald, sans-serif">Oswald</option>
|
||||
|
@ -348,10 +348,6 @@
|
|||
|
||||
<!-- formerly gsvg_panel -->
|
||||
<div id="container_panel" class="context_panel clearfix">
|
||||
|
||||
<!-- Add viewBox field here? -->
|
||||
|
||||
<label id="group_title" data-title="Group identification label">
|
||||
<h4>Group</h4>
|
||||
</div>
|
||||
|
||||
|
@ -395,7 +391,7 @@
|
|||
|
||||
<label class="draginput checkbox" id="tool_node_link" data-title="Link Control Points">
|
||||
<span>Linked Control Points</span>
|
||||
<div class="push_bottom"><input type="checkbox" checked></div>
|
||||
<div class="push_bottom"><input type="checkbox" checked="checked" /></div>
|
||||
</label>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
@ -462,7 +458,7 @@
|
|||
<option id="page" value="page">Align to page</option>
|
||||
</select>
|
||||
</label>
|
||||
<h4> </h4>
|
||||
<h4> </h4>
|
||||
<div class="col last clear">
|
||||
<div class="draginput_cell" id="tool_alignleft" title="Align Left"></div>
|
||||
<div class="draginput_cell" id="tool_aligncenter" title="Align Center"></div>
|
||||
|
@ -488,14 +484,14 @@
|
|||
<div class="stroke_tool draginput">
|
||||
<span>Stroke Dash</span>
|
||||
<select id="stroke_style" data-title="Change stroke dash style">
|
||||
<option selected="selected" value="none">—</option>
|
||||
<option selected="selected" value="none">—</option>
|
||||
<option value="2,2">···</option>
|
||||
<option value="5,5">- -</option>
|
||||
<option value="5,2,2,2">-·-</option>
|
||||
<option value="5,2,2,2,2,2">-··-</option>
|
||||
</select>
|
||||
<div class="caret"></div>
|
||||
<label id="stroke_style_label">—</label>
|
||||
<label id="stroke_style_label">—</label>
|
||||
</div>
|
||||
|
||||
<label style="display: none;">
|
||||
|
@ -556,7 +552,7 @@
|
|||
<option value="25">25%</option>
|
||||
<option value="50">50%</option>
|
||||
<option value="75">75%</option>
|
||||
<option selected value="100">100%</option>
|
||||
<option value="100" selected="selected">100%</option>
|
||||
<option value="150">150%</option>
|
||||
<option value="200">200%</option>
|
||||
<option value="300">300%</option>
|
||||
|
@ -625,10 +621,10 @@
|
|||
<li class="separator"><a href="#delete">Delete<span class="shortcut">⌫</span></a></li>
|
||||
<li class="separator"><a href="#group">Group<span class="shortcut">⌘G</span></a></li>
|
||||
<li><a href="#ungroup">Ungroup<span class="shortcut">⌘⇧G</span></a></li>
|
||||
<li class="separator"><a href="#move_front">Bring to Front<span class="shortcut">⌘⇧↑</span></a></li>
|
||||
<li><a href="#move_up">Bring Forward<span class="shortcut">⌘↑</span></a></li>
|
||||
<li><a href="#move_down">Send Backward<span class="shortcut">⌘↓</span></a></li>
|
||||
<li><a href="#move_back">Send to Back<span class="shortcut">⌘⇧↓</span></a></li>
|
||||
<li class="separator"><a href="#move_front">Bring to Front<span class="shortcut">⌘⇧↑</span></a></li>
|
||||
<li><a href="#move_up">Bring Forward<span class="shortcut">⌘↑</span></a></li>
|
||||
<li><a href="#move_down">Send Backward<span class="shortcut">⌘↓</span></a></li>
|
||||
<li><a href="#move_back">Send to Back<span class="shortcut">⌘⇧↓</span></a></li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -173,7 +173,6 @@ $(function() {
|
|||
} else {
|
||||
if(err.responseText) {
|
||||
svgdoc = parser.parseFromString(err.responseText, "text/xml");
|
||||
|
||||
if(!svgdoc.childNodes.length) {
|
||||
$(useFallback);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue