Simple machichara implemented

main
Inga 🏳‍🌈 14 years ago
parent 62effeb6cd
commit cf5f6ee162
  1. 2
      Builder/IISMainHandler/build.txt
  2. BIN
      static/images/machichara/simple/hexsex.gif
  3. 22
      static/js/machichara/simple.js
  4. 2
      templates/Full/elems/Main.xslt

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

@ -0,0 +1,22 @@
function simpleMachicharaUpdate(element) {
element.style.top = Math.floor(Math.random()*110 - 10) + "%";
element.style.left = Math.floor(Math.random()*110 - 10) + "%";
window.setTimeout(function() {
simpleMachicharaUpdate(element);
}, 5000+Math.floor(Math.random()*25000));
}
function simpleMachichara(imageUrl) {
var machicharaSimpleElement = document.createElement("div");
machicharaSimpleElement.zIndex = 1000;
machicharaSimpleElement.style.position = "absolute";
machicharaSimpleElement.style.top = "50%";
machicharaSimpleElement.style.left = "50%";
document.body.appendChild(machicharaSimpleElement);
var machicharaSimpleImageElement = document.createElement("img");
machicharaSimpleImageElement.src = imageUrl;
machicharaSimpleImageElement.style.border = "none";
machicharaSimpleElement.appendChild(machicharaSimpleImageElement);
simpleMachicharaUpdate(machicharaSimpleElement);
}

@ -11,6 +11,7 @@
</link> </link>
<link rel="shortcut icon" href="/static/favicons/smirk.ico" type="image/x-icon" /> <link rel="shortcut icon" href="/static/favicons/smirk.ico" type="image/x-icon" />
<script language="Javascript" type="text/javascript" src="/static/js/common.js"><xsl:text> </xsl:text></script> <script language="Javascript" type="text/javascript" src="/static/js/common.js"><xsl:text> </xsl:text></script>
<script language="Javascript" type="text/javascript" src="/static/js/machichara/simple.js"><xsl:text> </xsl:text></script>
<title> <title>
<xsl:call-template name="specificTitle"/> <xsl:call-template name="specificTitle"/>
<xsl:text> - </xsl:text> <xsl:text> - </xsl:text>
@ -18,6 +19,7 @@
</title> </title>
</head> </head>
<body> <body>
<xsl:attribute name="onLoad">simpleMachichara("/static/images/machichara/simple/hexsex.gif");</xsl:attribute>
<xsl:if test="not(get/param[@name='headers'] = 'false')"> <xsl:if test="not(get/param[@name='headers'] = 'false')">
<xsl:call-template name="header"/> <xsl:call-template name="header"/>
</xsl:if> </xsl:if>

Loading…
Cancel
Save