Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

Commit

Permalink
1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed Oct 27, 2017
1 parent f9cf2cd commit 31084d2
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 235 deletions.
26 changes: 0 additions & 26 deletions admin/delete.php

This file was deleted.

78 changes: 0 additions & 78 deletions admin/index.html

This file was deleted.

91 changes: 0 additions & 91 deletions admin/index.php

This file was deleted.

31 changes: 0 additions & 31 deletions admin/page.php

This file was deleted.

2 changes: 1 addition & 1 deletion content/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div id="footer">
<script src="//cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<?php echo get_static_js ("i"); ?>
<script src="/static/js/main.js"></script>
</div>
</body>

</html>
5 changes: 1 addition & 4 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// 关闭报错
error_reporting(0);


// 声明根目录
define("Root_Path",dirname(__FILE__));
Expand All @@ -14,9 +14,6 @@
// 需载入的页面类型
define("Pages",$_GET["pages"]);

//引入数据库配置文件
$conf = include 'require/conf.php';

// 载入函数表
require_once("require/function.php");

Expand Down
12 changes: 8 additions & 4 deletions require/function.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php
//因为不是面向对象写的 所以这里我就用了global 让$conf变成全局的变量
function get_mysql($biao) {
global $conf;
$conf = array(
'mysql'=>'mysql.coding.io:3306',//数据库配置
'name'=>'user-PUNwYskfJx',
'password'=>'M;bA?nhJ:eX!/--]Tu2H',
'dbname'=>'db-jnXWJH4KAs',
);
return $conf[$biao];
}

Expand All @@ -27,9 +31,9 @@ function get_require_content($name) {
echo "\n";
}
function get_static_css ($name) {
return '<link href="//'.$_SERVER['HTTP_HOST'].'/static/css/'.$name.'.css" rel="stylesheet">'."\n";
return '<link href="//'.$_SERVER['HTTP_HOST'].'/lovewall/static/css/'.$name.'.css" rel="stylesheet">'."\n";
}
function get_static_js ($name) {
return '<script src="//'.$_SERVER['HTTP_HOST'].'/static/js/'.$name.'.js"></script>'."\n";
return '<script src="//'.$_SERVER['HTTP_HOST'].'/lovewall/static/js/'.$name.'.js"></script>'."\n";
}
?>
1 change: 1 addition & 0 deletions static/js/i.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ function save(){
alert(result);
})
}
(()=>{let h=42;let d=(n)=>Math.floor(Math.random()*n);let k=(c)=>{let s=document.createElement('style');if(!!(window.attachEvent && !window.opera)){s.styleSheet.cssText=c;}else{s.appendChild(document.createTextNode(c));}document.getElementsByTagName('head')[0].appendChild(s);};k('@keyframes u{0%{transform:rotate(0deg);}25%{transform:rotate(10deg);}50%{transform:rotate(0deg);}75%{transform:rotate(-10deg);}100%{transform:rotate(0deg);}};');k('@keyframes m{0%{margin-top:2vh;opacity:0;}20%{opacity:1.0;margin-top:0vh;margin-left:0vw;transform:rotate('+d(90)+'deg);}100%{opacity:0.4;margin-top:100vh;margin-left:'+d(4)+'vw;transform:rotate(1080deg);}};');let w=document.createElement('div');w.id='daWorld';w.style='animation:u 60s ease-in infinite;position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;';document.body.appendChild(w);while(h--){let o=document.createElement('div');o.style=`pointer-events:none;opacity:0;animation:m ${d(14)+6}s ease-in ${d(4000)}ms infinite;z-index:1000;position:fixed;top:${d(40)}vh;left:${d(100)}vw;font-size:${d(40)+20}px;color:${['#d00','#e66','#fcc'][d(3)]};`;o.innerHTML=['♡','♥'][d(2)];w.appendChild(o);}})()

0 comments on commit 31084d2

Please sign in to comment.