Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed flash dependencies #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
216 changes: 109 additions & 107 deletions files/index.html
Original file line number Diff line number Diff line change
@@ -1,109 +1,111 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>NYAN CATZ!!1!</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" href="stylesheet.css" >
</head>
<body>
<script type="text/javascript">

/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/

//Configure below to change URL path to the snow image
var snowsrc="snyan.gif"
// Configure below to change number of snow to render
var no = 15;
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "windowheight";

///////////Stop Config//////////////////////////////////

var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;

if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*15; // set amplitude variables
stx[i] = 0.04 + Math.random()/10; // set step variables
sty[i] = 1.3 + Math.random(); // set step variables
if (ie4up||ns6up) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}
}

function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}

function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}


if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}

var backgroundOffset = 0;
function scrollBG(maxSize) {
backgroundOffset = backgroundOffset + 3;
if (backgroundOffset > maxSize) backgroundOffset = 0;
document.body.style.backgroundPosition = backgroundOffset+" 0";
}
setInterval("scrollBG(400)", 20)
</script>

<head>
<title>NYAN CATZ!!1!</title>
<link rel="shortcut icon" href="http://192.168.1.1/favicon.ico" />
<link rel="stylesheet" href="http://192.168.1.1/stylesheet.css" type="text/css" charset="utf-8">
</head>
<body>
<script type="text/javascript">

/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/

//Configure below to change URL path to the snow image
var snowsrc="http://192.168.1.1/snyan.gif"
// Configure below to change number of snow to render
var no = 15;
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "windowheight";

///////////Stop Config//////////////////////////////////

var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;

if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*15; // set amplitude variables
stx[i] = 0.04 + Math.random()/10; // set step variables
sty[i] = 1.3 + Math.random(); // set step variables
if (ie4up||ns6up) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}
}

function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}

function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}


if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}

var backgroundOffset = 0;
function scrollBG(maxSize) {
backgroundOffset = backgroundOffset + 3;
if (backgroundOffset > maxSize) backgroundOffset = 0;
document.body.style.backgroundPosition = backgroundOffset+" 0";
}
setInterval("scrollBG(400)", 20)
</script>

<h1 class="fontface">U HAVE BEEN NYAN'D !!!1!!111</h1></div>

<embed src="http://192.168.1.1/mp3player.swf?mp3=http://192.168.1.1/nyan-looped.mp3&amp;autoplay=1&amp;loop=1" style="height:0px;width:0px;" id="player">

</body>
</html>
<h1 class="fontface">U HAVE BEEN NYAN'D !!!1!!111</h1>
<audio loop autoplay>
<source src="nyan-looped.ogg" type="audio/ogg" />
<source src="nyan-looped.mp3" type="audio/mpeg" />
</audio>
</body>
</html>
14 changes: 11 additions & 3 deletions files/install.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
#!/bin/ash

Echo "This will disable the jasager interface. You can check here for the ssh access guide http://www.digininja.org/jasager/usage_cli.php"
Echo "Note that in my experiance, this will jam legitimate access points in the area"

uci set wireless.wifi0.disabled=0
uci commit wireless && wifi
uci set wireless.@wifi-iface[0].txpower=18
uci commit wireless

echo "address=/#/192.168.1.1" > /etc/dnsmasq.conf

mv /etc/init.d/jasager /etc/init.d/jasager.stock
mv jasager /etc/init.d/jasager
chmod +x /etc/init.d/jasager

mv bg.gif index.html mp3player.swf nyan-looped.mp3 snyan.gif stylesheet.css slkscr-webfont.eot slkscr-webfont.ttf slkscr-webfont.woff slkscr-webfont.svg favicon.ico /www/
mv bg.gif index.html nyan-looped.ogg nyan-looped.mp3 snyan.gif stylesheet.css slkscr-webfont.eot slkscr-webfont.ttf slkscr-webfont.woff slkscr-webfont.svg favicon.ico /www/

echo "E404:/www/index.html" >> /etc/nyhttpd.conf
echo ".ogg:audio/ogg" >> /etc/nyhttpd.conf
echo ".mp3:audio/mpeg" >> /etc/nyhttpd.conf

echo "E404:/www/index.html" > /etc/nyhttpd.conf
mv /etc/init.d/httpd /etc/init.d/httpd.stock
mv httpd /etc/init.d/httpd
chmod +x /etc/init.d/httpd

rm install.sh
echo "Done - Rebooting!"
reboot
reboot
Binary file removed files/mp3player.swf
Binary file not shown.
Binary file added files/nyan-looped.ogg
Binary file not shown.