remove obsolete code; move artwork into artwork directory
--HG-- rename : client/chrome/content/personas-logo.jpg => artwork/personas-logo.jpg rename : client/chrome/content/personas_24x24.png => artwork/personas_24x24.png
До Ширина: | Высота: | Размер: 28 KiB После Ширина: | Высота: | Размер: 28 KiB |
До Ширина: | Высота: | Размер: 6.9 KiB После Ширина: | Высота: | Размер: 6.9 KiB |
Двоичные данные
client/chrome/content/background-accent.jpg
До Ширина: | Высота: | Размер: 16 KiB |
Двоичные данные
client/chrome/content/footer-default.jpg
До Ширина: | Высота: | Размер: 10 KiB |
Двоичные данные
client/chrome/content/header-default.jpg
До Ширина: | Высота: | Размер: 32 KiB |
|
@ -1,47 +0,0 @@
|
|||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
flex="1"
|
||||
style="background-repeat: no-repeat;"
|
||||
onload="document.documentElement.style.backgroundImage = 'url(' + escapeCSSURL(gURL) + ')'">
|
||||
|
||||
<!-- WARNING: this is a chrome-privileged document when loaded from a chrome:
|
||||
- URL, so you should only ever use it to load local images that the user
|
||||
- has selected for a custom persona. All remote images and images that the
|
||||
- user has not personally selected should be loaded via the non-privileged
|
||||
- loader hardcoded into nsPersonaService.js.
|
||||
-->
|
||||
|
||||
<!-- Because CSS image loads don't block the load/pageshow events in Firefox 2,
|
||||
- we load the image in an image tag, which does block those events, and then
|
||||
- set the background-image property once the image has finished loading. -->
|
||||
<image id="image" collapsed="true"/>
|
||||
|
||||
<script type="application/javascript">
|
||||
<![CDATA[
|
||||
// The URL of the image to load. Defined below by the code that parses
|
||||
// the URL parameters.
|
||||
var gURL;
|
||||
|
||||
// Escape CSS special characters in unquoted URLs
|
||||
// per http://www.w3.org/TR/CSS21/syndata.html#uri
|
||||
function escapeCSSURL(aURLSpec) {
|
||||
return aURLSpec.replace(/[(),\s'"]/g, "\$&");
|
||||
}
|
||||
|
||||
// Set the background properties specified by the URL.
|
||||
let params = window.location.search.substr(1);
|
||||
for each (let param in params.split("&")) {
|
||||
let [name, value] = param.split("=");
|
||||
value = decodeURIComponent(value);
|
||||
switch(name) {
|
||||
case "url":
|
||||
gURL = value;
|
||||
document.getElementById("image").setAttribute("src", gURL);
|
||||
break;
|
||||
case "position":
|
||||
document.documentElement.style.backgroundPosition = value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</script>
|
||||
</window>
|
|
@ -1,20 +0,0 @@
|
|||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<!-- We specify the width and height very explicitly, particularly minwidth,
|
||||
- since otherwise Gecko might resize each iframe to fit into the dimensions
|
||||
- of the hidden window, and we want each iframe to be exactly the size
|
||||
- we tell our persona authors to make their personas.
|
||||
-->
|
||||
|
||||
<iframe id="headerIframe" type="content"
|
||||
width="3000" minwidth="3000" maxwidth="3000"
|
||||
height="200" minheight="200" maxheight="200"/>
|
||||
<xhtml:canvas id="headerCanvas" width="3000" height="200"></xhtml:canvas>
|
||||
|
||||
<iframe id="footerIframe" type="content"
|
||||
width="3000" minwidth="3000" maxwidth="3000"
|
||||
height="100" minheight="100" maxheight="100"/>
|
||||
<xhtml:canvas id="footerCanvas" width="3000" height="100"></xhtml:canvas>
|
||||
|
||||
</window>
|