Skip to content

Commit f748d80

Browse files
committed
upd
1 parent 0cea532 commit f748d80

File tree

4 files changed

+148
-24
lines changed

4 files changed

+148
-24
lines changed

css/default.css

Lines changed: 115 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,115 @@
1-
body{margin:0;padding:0;background:#ffe;font-size:12px;overflow:auto}#mainDiv{width:100%;height:100%}#loveHeart{float:left;width:670px;height:625px}#garden{width:100%;height:100%}#elapseClock{text-align:right;font-size:18px;margin-top:10px;margin-bottom:10px}#words{font-family:"sans-serif";width:500px;font-size:24px;color:#666}#messages{display:none}#elapseClock .digit{font-family:"digit";font-size:36px}#loveu{padding:5px;font-size:22px;margin-top:80px;margin-right:120px;text-align:right;display:none}#loveu .signature{margin-top:10px;font-size:20px;font-style:italic}#clickSound{display:none}#code{float:left;width:440px;height:400px;color:#333;font-family:"Consolas","Monaco","Bitstream Vera Sans Mono","Courier New","sans-serif";font-size:12px}#code .string{color:#2a36ff}#code .keyword{color:#7f0055;font-weight:bold}#code .placeholder{margin-left:15px}#code .space{margin-left:7px}#code .comments{color:#3f7f5f}#copyright{margin-top:10px;text-align:center;width:100%;color:#666}#errorMsg{width:100%;text-align:center;font-size:24px;position:absolute;top:100px;left:0}#copyright a{color:#666}
1+
body {
2+
margin: 0;
3+
padding: 0;
4+
background: #ffe;
5+
font-size: 12px;
6+
overflow: auto
7+
}
8+
9+
#mainDiv {
10+
width: 100%;
11+
height: 100%
12+
}
13+
14+
#loveHeart {
15+
float: left;
16+
width: 670px;
17+
height: 625px
18+
}
19+
20+
#garden {
21+
width: 100%;
22+
height: 100%
23+
}
24+
25+
#elapseClock {
26+
text-align: right;
27+
font-size: 18px;
28+
margin-top: 10px;
29+
margin-bottom: 10px
30+
}
31+
32+
#words {
33+
font-family: "sans-serif";
34+
width: 500px;
35+
font-size: 24px;
36+
color: #666
37+
}
38+
39+
#messages {
40+
display: none
41+
}
42+
43+
#elapseClock .digit {
44+
font-family: "digit";
45+
font-size: 36px
46+
}
47+
48+
#loveu {
49+
padding: 5px;
50+
font-size: 22px;
51+
margin-top: 80px;
52+
margin-right: 120px;
53+
text-align: right;
54+
display: none
55+
}
56+
57+
#loveu .signature {
58+
margin-top: 10px;
59+
font-size: 20px;
60+
font-style: italic
61+
}
62+
63+
#clickSound {
64+
display: none
65+
}
66+
67+
#code {
68+
float: left;
69+
width: 440px;
70+
height: 400px;
71+
color: #333;
72+
font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", "sans-serif";
73+
font-size: 12px
74+
}
75+
76+
#code .string {
77+
color: #2a36ff
78+
}
79+
80+
#code .keyword {
81+
color: #7f0055;
82+
font-weight: bold
83+
}
84+
85+
#code .placeholder {
86+
margin-left: 15px
87+
}
88+
89+
#code .space {
90+
margin-left: 7px
91+
}
92+
93+
#code .comments {
94+
color: #3f7f5f
95+
}
96+
97+
#copyright {
98+
margin-top: 10px;
99+
text-align: center;
100+
width: 100%;
101+
color: #666
102+
}
103+
104+
#errorMsg {
105+
width: 100%;
106+
text-align: center;
107+
font-size: 24px;
108+
position: absolute;
109+
top: 100px;
110+
left: 0
111+
}
112+
113+
#copyright a {
114+
color: #666
115+
}

css/default_dev.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ body {
44
background: #FFFFEE;
55
font-size: 12px;
66
overflow: auto;
7+
8+
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
9+
-webkit-filter: grayscale(100%);
710
}
811

912
#mainDiv{
@@ -117,4 +120,4 @@ body {
117120

118121
#copyright a{
119122
color:#666;
120-
}
123+
}

index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
<span class="space" /><span class="comments">* はじめて出会った時</span><br />
2525
<span class="space" /><span class="comments">* 君のことが好きってわかった</span><br />
2626
<span class="space" /><span class="comments">*/</span><br />
27-
<span class="keyword">let</span> i = <span class="keyword"></span> Boy::new(<span class="string">"緋村源心"</span>);<br />
28-
<span class="keyword">let</span> u = <span class="keyword"></span> Girl::new(<span class="string">"+0"</span>);<br />
27+
<span class="keyword">let</span> i = <span class="keyword"></span> Boy::new(<span
28+
class="string">"緋村源心"</span>);<br />
29+
<span class="keyword">let</span> u = <span class="keyword"></span> Girl::new(<span
30+
class="string">"+0"</span>);<br />
2931
<span class="comments">// 二千二十二年七月二十日</span><br />
3032
<span class="comments">// 弊社の産品をご利用はじめた</span><br />
3133
u.tried(i);<br />
@@ -47,8 +49,8 @@
4749
<div id="messagesEnd">でした</div>
4850
</div>
4951
<div id="loveu">
50-
一万年と二千年前から<br />
51-
ア・イ・シ・テ・ル<br />
52+
其实早就结束了<br />
53+
只是今天才埋<br />
5254
<div class="signature">by 緋村源心</div>
5355
</div>
5456
</div>
@@ -74,7 +76,7 @@
7476
msg.id = "errorMsg";
7577
msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+";
7678
document.body.appendChild(msg);
77-
$("#code").css("display", "none")
79+
$("#code").css("display", "none");
7880
$("#copyright").css("position", "absolute");
7981
$("#copyright").css("bottom", "10px");
8082
document.execCommand("stop");

js/functions_dev.js

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -93,23 +93,28 @@ function startHeartAnimation() {
9393
})(jQuery);
9494

9595
function timeElapse(date){
96-
var current = Date();
97-
var seconds = (Date.parse(current) - Date.parse(date)) / 1000;
98-
var days = Math.floor(seconds / (3600 * 24));
99-
seconds = seconds % (3600 * 24);
100-
var hours = Math.floor(seconds / 3600);
101-
if (hours < 10) {
102-
hours = "0" + hours;
103-
}
104-
seconds = seconds % 3600;
105-
var minutes = Math.floor(seconds / 60);
106-
if (minutes < 10) {
107-
minutes = "0" + minutes;
108-
}
109-
seconds = seconds % 60;
110-
if (seconds < 10) {
111-
seconds = "0" + seconds;
112-
}
96+
// var current = Date();
97+
// var seconds = (Date.parse(current) - Date.parse(date)) / 1000;
98+
// var days = Math.floor(seconds / (3600 * 24));
99+
// seconds = seconds % (3600 * 24);
100+
// var hours = Math.floor(seconds / 3600);
101+
// if (hours < 10) {
102+
// hours = "0" + hours;
103+
// }
104+
// seconds = seconds % 3600;
105+
// var minutes = Math.floor(seconds / 60);
106+
// if (minutes < 10) {
107+
// minutes = "0" + minutes;
108+
// }
109+
// seconds = seconds % 60;
110+
// if (seconds < 10) {
111+
// seconds = "0" + seconds;
112+
// }
113+
const days = "872";
114+
const hours = "00";
115+
const minutes = "00";
116+
const seconds = "00";
117+
113118
var result = "<span class=\"digit\">" + days + "</span> 日 <span class=\"digit\">" + hours + "</span> 時 <span class=\"digit\">" + minutes + "</span> 分 <span class=\"digit\">" + seconds + "</span> 秒";
114119
$("#elapseClock").html(result);
115120
}

0 commit comments

Comments
 (0)