Commit 8eaf4969 authored by Julien Muchembled's avatar Julien Muchembled

BT: dummy copy to preserve history before reexporting objects in 2 files

parent eaf027b2
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>cloudooo.js</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
$.extend({\n
getUrlVars: function(){\n
var vars = [], hash;\n
var hashes = window.location.href.slice(window.location.href.indexOf(\'?\') + 1).split(\'&\');\n
for(var i = 0; i < hashes.length; i++)\n
{\n
hash = hashes[i].split(\'=\');\n
vars.push(hash[0]);\n
vars[hash[0]] = hash[1];\n
}\n
return vars;\n
},\n
getUrlVar: function(name){\n
return $.getUrlVars()[name];\n
}\n
});\n
\n
var checkState_call_count = 0\n
function checkState(message){\n
checkState_call_count += 1\n
var checkState_call_str = ["",".","..","..."]\n
$("#transition-message").html(message+checkState_call_str[checkState_call_count%4])\n
$.get("Document_getPropertiesAsJSON", {}, function(data, textStatus, XMLHttpRequest){\n
if (textStatus == "timeout" || textStatus == "error" || textStatus == "parsererror"){\n
$("title").html("Error during conversion");\n
$("#transition-message").html("An error occurs during the process. Please resend your file");\n
}\n
else {\n
//TextStatus is "notmodified","success"\n
json = jQuery.parseJSON( data );\n
if ((json.processing == "converted") || (json.processing == "conversion_failed") || (json.processing == "empty")){\n
$("title").html("Finish");\n
$("#transition-message").html("The conversion process is finish. You will be redirect in 3 seconds.");\n
setTimeout("$(location).attr(\'href\',\'"+json.permanent_url+"\')", 3000);\n
}\n
else {\n
if (json.processing == "process_error") {\n
$("title").html("Error during conversion");\n
$("#transition-message").html("An error occurs during the process. Please resend your file");\n
}\n
else {\n
setTimeout("checkState(\'"+message+"\')", 500);\n
}\n
}\n
}\n
});\n
}\n
\n
function createBookmark(title,url) {\n
if ($.browser.mozilla == true) {\n
window.sidebar.addPanel(title, url, "");\n
} \n
else {\n
if($.browser.msie == true) {\n
window.external.AddFavorite( url, title);\n
}\n
else {\n
alert(\'Please use CTRL + D to bookmark this website.\'); \n
}\n
}\n
}\n
\n
function generateLink(id, title, url){\n
var link_title ;\n
if ($.browser.msie == true) {\n
link_title = "Add to Favorites";\n
} else if ($.browser.mozilla == true) {\n
link_title = "Bookmark Page";\n
} else if ($.browser.opera== true) { \n
link_title = "Add Bookmark" ;\n
} else {\n
link_title = "Add to favorites";\n
}\n
\n
var link = $(id);\n
link.attr("title",link_title);\n
link.html(link_title);\n
link.attr("href","javascript:createBookmark(\\""+title+"\\",\\""+url+"\\");");\n
}\n
\n
function contentMaximise(){\n
$("#content").removeClass("twocolumns");\n
$("#sidebar").hide();\n
}\n
\n
function contentMinimise(){\n
$("#content").addClass("twocolumns");\n
$("#sidebar").show();\n
}
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>cloudooo_checkdownload.js</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>$(document).ready(function() {\n
checkState($("#transition-message").html());\n
});</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>cloudooo_content.js</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>$(document).ready(function() {\n
generateLink("a.document_bookmark",$("title").html(), $("a.document_link").attr("href"));\n
\n
$("span.headline").click(function(){\n
if ($("#content").hasClass("twocolumns"))\n
contentMaximise();\n
else\n
contentMinimise();\n
});\n
\n
$("span.headline").css("cursor","pointer");\n
\n
});</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>root_http_skin_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>tabber-cookie.js</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
/* Optional: Temporarily hide the "tabber" class so it does not "flash"\n
on the page as plain HTML. After tabber runs, the class is changed\n
to "tabberlive" and it will appear. */\n
\n
document.write(\'<style type="text/css">.tabber{display:none;}<\\/style>\');\n
\n
/*==================================================\n
Set the tabber options (must do this before including tabber.js)\n
==================================================*/\n
var tabberOptions = {\n
\n
\'cookie\':"tabber", /* Name to use for the cookie */\n
\n
\'onLoad\': function(argsObj)\n
{\n
var t = argsObj.tabber;\n
var i;\n
\n
/* Optional: Add the id of the tabber to the cookie name to allow\n
for multiple tabber interfaces on the site. If you have\n
multiple tabber interfaces (even on different pages) I suggest\n
setting a unique id on each one, to avoid having the cookie set\n
the wrong tab.\n
*/\n
if (t.id) {\n
t.cookie = t.id + t.cookie;\n
}\n
\n
/* If a cookie was previously set, restore the active tab */\n
i = parseInt(getCookie(t.cookie));\n
if (isNaN(i)) { return; }\n
t.tabShow(i);\n
},\n
\n
\'onClick\':function(argsObj)\n
{\n
var c = argsObj.tabber.cookie;\n
var i = argsObj.index;\n
setCookie(c, i);\n
}\n
};\n
\n
/*==================================================\n
Cookie functions\n
==================================================*/\n
function setCookie(name, value, expires, path, domain, secure) {\n
document.cookie= name + "=" + escape(value) +\n
((expires) ? "; expires=" + expires.toGMTString() : "") +\n
((path) ? "; path=" + path : "") +\n
((domain) ? "; domain=" + domain : "") +\n
((secure) ? "; secure" : "");\n
}\n
\n
function getCookie(name) {\n
var dc = document.cookie;\n
var prefix = name + "=";\n
var begin = dc.indexOf("; " + prefix);\n
if (begin == -1) {\n
begin = dc.indexOf(prefix);\n
if (begin != 0) return null;\n
} else {\n
begin += 2;\n
}\n
var end = document.cookie.indexOf(";", begin);\n
if (end == -1) {\n
end = dc.length;\n
}\n
return unescape(dc.substring(begin + prefix.length, end));\n
}\n
function deleteCookie(name, path, domain) {\n
if (getCookie(name)) {\n
document.cookie = name + "=" +\n
((path) ? "; path=" + path : "") +\n
((domain) ? "; domain=" + domain : "") +\n
"; expires=Thu, 01-Jan-70 00:00:01 GMT";\n
}\n
}
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>TODO</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>Change type of xml / svg stuff</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>TODO</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>Change type of xml / svg stuff</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>preview.html</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<script>\r\n
\r\n
// Prevent from DOM clobbering.\r\n
if ( typeof window.opener._cke_htmlToLoad == \'string\' ) {\r\n
\tvar doc = document;\r\n
\tdoc.open();\r\n
\tdoc.write( window.opener._cke_htmlToLoad );\r\n
\tdoc.close();\r\n
\r\n
\tdelete window.opener._cke_htmlToLoad;\r\n
}\r\n
\r\n
</script>\r\n
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>ciframe.html</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r\n
<!--\r\n
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.\r\n
For licensing, see LICENSE.html or http://ckeditor.com/license\r\n
-->\r\n
<html>\r\n
<head>\r\n
\t<title></title>\r\n
\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n
\t<script type="text/javascript">\r\n
\r\n
function gup( name )\r\n
{\r\n
\tname = name.replace( /[\\[]/, \'\\\\\\[\' ).replace( /[\\]]/, \'\\\\\\]\' ) ;\r\n
\tvar regexS = \'[\\\\?&]\' + name + \'=([^&#]*)\' ;\r\n
\tvar regex = new RegExp( regexS ) ;\r\n
\tvar results = regex.exec( window.location.href ) ;\r\n
\r\n
\tif ( results )\r\n
\t\treturn results[ 1 ] ;\r\n
\telse\r\n
\t\treturn \'\' ;\r\n
}\r\n
\r\n
var interval;\r\n
\r\n
function sendData2Master()\r\n
{\r\n
\tvar destination = window.parent.parent ;\r\n
\ttry\r\n
\t{\r\n
\t\tif ( destination.XDTMaster )\r\n
\t\t{\r\n
\t\t\tvar t = destination.XDTMaster.read( [ gup( \'cmd\' ), gup( \'data\' ) ] ) ;\r\n
\t\t\twindow.clearInterval( interval ) ;\r\n
\t\t}\r\n
\t}\r\n
\tcatch (e) {}\r\n
}\r\n
\r\n
function OnMessage (event) {\r\n
\t var message = event.data;\r\n
\t var destination = window.parent.parent;\r\n
\t destination.XDTMaster.read( [ \'end\', message, \'fpm\' ] ) ;\r\n
}\r\n
\r\n
function listenPostMessage() {\r\n
if (window.addEventListener) { // all browsers except IE before version 9\r\n
window.addEventListener ("message", OnMessage, false);\r\n
}else {\r\n
if (window.attachEvent) { // IE before version 9\r\n
window.attachEvent("onmessage", OnMessage);\r\n
}\r\n
}\r\n
}\r\n
\r\n
function onLoad()\r\n
{\r\n
\tinterval = window.setInterval( sendData2Master, 100 );\r\n
\tlistenPostMessage();\r\n
}\r\n
\r\n
</script>\r\n
</head>\r\n
<body onload="onLoad()"><p></p></body>\r\n
</html>\r\n
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>tmpFrameset.html</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">\r\n
<!--\r\n
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.\r\n
For licensing, see LICENSE.html or http://ckeditor.com/license\r\n
-->\r\n
<html>\r\n
<head>\r\n
\t<title></title>\r\n
\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n
\t<script type="text/javascript">\r\n
\r\n
function doLoadScript( url )\r\n
{\r\n
\tif ( !url )\r\n
\t\treturn false ;\r\n
\r\n
\tvar s = document.createElement( "script" ) ;\r\n
\ts.type = "text/javascript" ;\r\n
\ts.src = url ;\r\n
\tdocument.getElementsByTagName( "head" )[ 0 ].appendChild( s ) ;\r\n
\r\n
\treturn true ;\r\n
}\r\n
\r\n
var opener;\r\n
function tryLoad()\r\n
{\r\n
\topener = window.parent;\r\n
\r\n
\t// get access to global parameters\r\n
\tvar oParams = window.opener.oldFramesetPageParams;\r\n
\r\n
\t// make frameset rows string prepare\r\n
\tvar sFramesetRows = ( parseInt( oParams.firstframeh, 10 ) || \'30\') + ",*," + ( parseInt( oParams.thirdframeh, 10 ) || \'150\' ) + \',0\' ;\r\n
\tdocument.getElementById( \'itFrameset\' ).rows = sFramesetRows ;\r\n
\r\n
\t// dynamic including init frames and crossdomain transport code\r\n
\t// from config sproxy_js_frameset url\r\n
\tvar addScriptUrl = oParams.sproxy_js_frameset ;\r\n
\tdoLoadScript( addScriptUrl ) ;\r\n
}\r\n
\r\n
\t</script>\r\n
</head>\r\n
\r\n
<frameset id="itFrameset" onload="tryLoad();" border="0" rows="30,*,*,0">\r\n
<frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="0" marginwidth="2" src="" name="navbar"></frame>\r\n
<frame scrolling="auto" framespacing="0" frameborder="0" noresize="noresize" marginheight="0" marginwidth="0" src="" name="mid"></frame>\r\n
<frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="1" marginwidth="1" src="" name="bot"></frame>\r\n
<frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="1" marginwidth="1" src="" name="spellsuggestall"></frame>\r\n
</frameset>\r\n
</html>\r\n
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>browser-not-supported.html</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!DOCTYPE html>\n
<html>\n
<head>\n
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />\n
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>\n
<link rel="icon" type="image/png" href="images/logo.png"/>\n
<link rel="stylesheet" href="svg-editor.css" type="text/css"/>\n
<script src="jquery.js"></script>\n
<title>Browser does not support SVG | SVG-edit</title>\n
</head>\n
<body>\n
\n
<div id="browser-not-supported">\n
<img style="float:left;padding:10px;" src="images/logo.png" width="48" height="48" alt="SVG-edit logo" /><br />\n
<p>Sorry, but your browser does not support SVG. Below is a list of alternate browsers and versions that support SVG and SVG-edit (from <a href="http://caniuse.com/#cats=SVG">caniuse.com</a>).</p>\n
<p>Try the latest version of <a href="http://www.getfirefox.com">Firefox</a>, <a href="http://www.google.com/chrome/">Google Chrome</a>, <a href="http://www.apple.com/safari/download/">Safari</a>, <a href="http://www.opera.com/download/">Opera</a> or <a href="http://windows.microsoft.com/ie9">Internet Explorer</a>.</p>\n
<p>If you are unable to install one of these and must use an old version of Internet Explorer, you can install the <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame plugin</a>.</p>\n
\n
</div>\n
\n
<script>\n
/*globals $*/\n
var viewportHeight = window.innerHeight || ($(window).height() - 140);\n
var iframe = document.createElement(\'iframe\');\n
iframe.style.width = \'100%\';\n
iframe.style.height = viewportHeight + \'px\';\n
iframe.src = \'http://caniuse.com/#cats=SVG\';\n
document.body.appendChild(iframe);\n
</script>\n
</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>embedapi.html</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!DOCTYPE html>\n
<html xmlns="http://www.w3.org/1999/xhtml">\n
<head>\n
<meta charset="utf-8" />\n
<title>Embed API</title>\n
<script src="jquery.js"></script>\n
<script src="embedapi.js"></script>\n
<script>\n
/*globals $, EmbeddedSVGEdit*/\n
\tvar initEmbed;\n
$(function () {\'use strict\';\n
\n
var svgCanvas = null;\n
\n
initEmbed = function () {\n
var doc, mainButton,\n
frame = document.getElementById(\'svgedit\');\n
svgCanvas = new EmbeddedSVGEdit(frame);\n
// Hide main button, as we will be controlling new, load, save, etc. from the host document\n
doc = frame.contentDocument || frame.contentWindow.document;\n
mainButton = doc.getElementById(\'main_button\');\n
mainButton.style.display = \'none\';\n
};\n
\n
function handleSvgData(data, error) {\n
if (error) {\n
alert(\'error \' + error);\n
} else {\n
alert(\'Congratulations. Your SVG string is back in the host page, do with it what you will\\n\\n\' + data);\n
}\n
}\n
\n
function loadSvg() {\n
var svgexample = \'<svg width="640" height="480" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><g><title>Layer 1<\\/title><rect stroke-width="5" stroke="#000000" fill="#FF0000" id="svg_1" height="35" width="51" y="35" x="32"/><ellipse ry="15" rx="24" stroke-width="5" stroke="#000000" fill="#0000ff" id="svg_2" cy="60" cx="66"/><\\/g><\\/svg>\';\n
svgCanvas.setSvgString(svgexample);\n
}\n
\n
function saveSvg() {\n
svgCanvas.getSvgString()(handleSvgData);\n
}\n
\n
// Add event handlers\n
$(\'#load\').click(loadSvg);\n
$(\'#save\').click(saveSvg);\n
\t\t$(\'body\').append(\n
\t\t\t$(\'<iframe src="svg-editor.html?extensions=ext-xdomain-messaging.js\' +\n
\t\t\t\twindow.location.href.replace(/\\?(.*)$/, \'&$1\') + // Append arguments to this file onto the iframe\n
\t\t\t\t\'" width="900px" height="600px" id="svgedit" onload="initEmbed();"></iframe>\'\n
\t\t\t)\n
\t\t);\n
\t});\n
</script>\n
</head>\n
<body>\n
<button id="load">Load example</button>\n
<button id="save">Save data</button>\n
<br/>\n
</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>form-test.html</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!DOCTYPE html>\r\n
<html xmlns="http://www.w3.org/1999/xhtml">\r\n
<head>\r\n
<meta charset="utf-8" />\r\n
<title></title>\r\n
\t\t<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>\r\n
</head>\r\n
<body>\r\n
<form action="filesave.php">\r\n
<input type="hidden" value="" name="output_svg" />\r\n
</form>\r\n
<script>\r\n
/*globals $*/\r\n
function xhtmlEscape(str) {\'use strict\';\r\n
\t\treturn str.replace(/&(?!amp;)/g, \'&amp;\').replace(/"/g, \'&quot;\').replace(/</g, \'&lt;\'); // < is actually disallowed above anyways\r\n
\t}\r\n
$(\'<form>\').attr({\r\n
\t\t\t\t\tmethod: \'post\',\r\n
\t\t\t\t\taction: \'filesave.php\',\r\n
\t\t\t\t\ttarget: \'output_frame\'\r\n
\t\t\t\t}).append(\'<input type="hidden" name="output_svg" value="\' + xhtmlEscape(\'<svg width="640" height="480" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><script>alert(document.cookie);<\\/script><\\/svg>\') + \'">\')\r\n
\t\t\t\t\t.appendTo(\'body\')\r\n
\t\t\t\t\t.submit().remove();\r\n
</script>\r\n
\r\n
</body>\r\n
</html>\r\n
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>index.html</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!DOCTYPE html>\r\n
<html xmlns="http://www.w3.org/1999/xhtml">\r\n
<head>\r\n
<meta charset="utf-8" />\r\n
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>\r\n
</head>\r\n
<body>\r\n
\r\n
<h1>Select an image:</h1>\r\n
<a href="smiley.svg">smiley.svg</a>\r\n
<br>\r\n
<a href="../../images/logo.png">logo.png</a>\r\n
\r\n
<script>\r\n
/*globals $*/\r\n
/*jslint vars: true*/\r\n
$(\'a\').click(function() {\'use strict\';\r\n
\tvar meta_str;\r\n
\tvar href = this.href;\r\n
\tvar target = window.parent;\r\n
\t// Convert Non-SVG images to data URL first \r\n
\t// (this could also have been done server-side by the library)\r\n
\tif (this.href.indexOf(\'.svg\') === -1) {\r\n
\r\n
\t\tmeta_str = JSON.stringify({\r\n
\t\t\tname: $(this).text(),\r\n
\t\t\tid: href\r\n
\t\t});\r\n
\t\ttarget.postMessage(meta_str, \'*\');\r\n
\r\n
\t\tvar img = new Image();\r\n
\t\timg.onload = function() {\r\n
\t\t\tvar canvas = document.createElement(\'canvas\');\r\n
\t\t\tcanvas.width = this.width;\r\n
\t\t\tcanvas.height = this.height;\r\n
\t\t\t// load the raster image into the canvas\r\n
\t\t\tcanvas.getContext(\'2d\').drawImage(this, 0, 0);\r\n
\t\t\t// retrieve the data: URL\r\n
\t\t\tvar dataurl;\r\n
\t\t\ttry {\r\n
\t\t\t\tdataurl = canvas.toDataURL();\r\n
\t\t\t} catch(err) {\r\n
\t\t\t\t// This fails in Firefox with file:// URLs :(\r\n
\t\t\t\talert("Data URL conversion failed: " + err);\r\n
\t\t\t\tdataurl = "";\r\n
\t\t\t}\r\n
\t\t\ttarget.postMessage(\'|\' + href + \'|\' + dataurl, \'*\');\r\n
\t\t};\r\n
\t\timg.src = href;\r\n
\t} else {\r\n
\t\t// Send metadata (also indicates file is about to be sent)\r\n
\t\tmeta_str = JSON.stringify({\r\n
\t\t\tname: $(this).text(),\r\n
\t\t\tid: href\r\n
\t\t});\r\n
\t\ttarget.postMessage(meta_str, \'*\');\r\n
\t\t// Do ajax request for image\'s href value\r\n
\t\t$.get(href, function(data) {\r\n
\t\t\tdata = \'|\' + href + \'|\' + data;\r\n
\t\t\t// This is where the magic happens!\r\n
\t\t\ttarget.postMessage(data, \'*\');\r\n
\t\t\t\r\n
\t\t}, \'html\'); // \'html\' is necessary to keep returned data as a string\r\n
\t}\r\n
\treturn false;\r\n
});\r\n
\r\n
</script>\r\n
</body>\r\n
</html>\r\n
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>erp5_run_my_docs.js</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\n
Copyright (c) 2011 Nexedi SARL and Contributors. All Rights Reserved.\n
\n
This program is Free Software; you can redistribute it and/or\n
modify it under the terms of the GNU General Public License\n
as published by the Free Software Foundation; either version 2\n
of the License, or (at your option) any later version.\n
\n
This program is distributed in the hope that it will be useful,\n
but WITHOUT ANY WARRANTY; without even the implied warranty of\n
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n
GNU General Public License for more details.\n
\n
You should have received a copy of the GNU General Public License\n
along with this program; if not, write to the Free Software\n
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
*/\n
\n
//Add indentation to an HTML element\n
function addIndentation(container, first, level){\n
var children = container.children;\n
var text;\n
var n = children.length;\n
if(first){\n
text = container.innerHTML.trim().replace(\'>\', \'>\\n\').split(\'\\n\');\n
var m = text.length;\n
for(var i = 0; i < m; i++){\n
text[i] = text[i].trim();\n
}\n
}\n
else\n
text = container.innerHTML.trim().split(\'\\n\');\n
if(n == 0 && text.length == 1)\n
container.innerHTML = text[0];\n
else if(n == 0) {\n
container.innerHTML = \'\\n \' + text.join(\'\\n \') + \'\\n\';\n
}\n
else {\n
container.innerHTML = text.join(\'\\n\');\n
text = \'\';\n
children = container.childNodes;\n
n = children.length;\n
for(var i = 0; i < n; i++){\n
var child = children[i];\n
var addNewLine = false;\n
if(child.nodeType == 1){\n
text += addIndentation(child, false, 0);\n
addNewLine = child.tagName.length > 1 && child.tagName != \'P\' && i < n - 1;\n
}\n
else{\n
var textNotEmpty = child.textContent.trim() != \'\';\n
if(textNotEmpty)\n
text += child.textContent;\n
addNewLine = textNotEmpty && child.textContent.search(\'\\n\') > -1 && i < n - 1;\n
}\n
if(addNewLine)\n
text += \'\\n\';\n
}\n
if(first){\n
text = container.innerHTML.split(\'\\n\');\n
var result = \'\\n \';\n
first = true;\n
n = text.length;\n
for(var i = 0; i < n; i++){\n
if(text[i].trim() != \'\'){\n
if(first){\n
first = false;\n
result += text[i];\n
}\n
else\n
result += \'\\n \' + text[i];\n
}\n
}\n
result += \'\\n\';\n
container.innerHTML = result;\n
}\n
else\n
container.innerHTML = \'\\n \' + text.split(\'\\n\').join(\'\\n \') + \'\\n\';\n
}\n
var element = document.createElement(\'div\');\n
element.appendChild(container.cloneNode(true));\n
var whitespaces = Array(level + 1).join(\' \');\n
return whitespaces + element.innerHTML.split(\'\\n\').join(\'\\n\' + whitespaces);\n
}\n
\n
function indent(container, level){\n
return addIndentation(container, true, level);\n
}
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>reviewer.css</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>.activated_review_tooltip {\n
position:absolute;\n
display:block;\n
left:-1000px;\n
top:-1000px;\n
padding:5px 5px 5px 5px;\n
border: 2px solid #000000;\n
}\n
\n
.desactivated_review_tooltip {\n
display:none;\n
position:absolute;\n
left:-1000px;\n
top:-1000px;\n
}\n
\n
div.added_comment{\n
border-radius: 5px; \n
-moz-border-radius: 5px; \n
-webkit-border-radius: 5px; \n
border: 1px solid #000000;\n
opacity:.20;\n
filter:alpha(opacity=20);\n
filter: "alpha(opacity=20)";\n
overflow:hidden;\n
text-align: center;\n
vertical-align: middle;\n
position:absolute;\n
z-index:10000;\n
}\n
\n
div.added_comment:hover{\n
opacity: 0;\n
filter:alpha(opacity=0);\n
filter: "alpha(opacity=0)";\n
color: #000000;\n
}\n
\n
div.added_comment_edited{\n
opacity: 1;\n
filter:alpha(opacity=100);\n
filter: "alpha(opacity=100)";\n
color: #000000;\n
position:absolute;\n
z-index:10000;\n
}\n
\n
div.added_comment_edited textarea{\n
background-color: #0000FF;\n
}\n
\n
.label_document_not_ready {\n
background-color: #FF0000;\n
}\n
\n
.label_document_ready {\n
background-color: #00FF00;\n
}\n
\n
.activated_review_tooltip div{\n
display:block;\n
width: 16px;\n
height: 16px;\n
background-repeat:no-repeat;\n
background-position:center;\n
background-color: transparent;\n
-webkit-background-size: 100%;\n
-moz-background-size: 100%;\n
-o-background-size: 100%;\n
background-size: 100%;\n
cursor:pointer;\n
opacity: 0.5;\n
filter: alpha(opacity=50) ;\n
filter: "alpha(opacity=50)";\n
margin-top:5px;\n
}\n
\n
.activated_review_tooltip div:hover{\n
opacity: 1;\n
filter:alpha(opacity=100);\n
filter: "alpha(opacity=100)";\n
}\n
\n
.color_button{\n
border: 1px solid #000000;\n
margin-left: 1px;\n
margin-right: 1px;\n
width: 12px;\n
height: 12px;\n
float: left;\n
}\n
\n
.remove_button{\n
background-image: url("images/editdelete.png");\n
float: left;\n
}\n
\n
.validate_button{\n
background-image: url("images/save2.png");\n
float: right;\n
}\n
\n
.activated_review_tooltip .tooltip_text{\n
display:block;\n
}\n
\n
.activated_review_tooltip .tooltip_author{\n
display:block;\n
float:right;\n
margin-top:5px;\n
}</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment