-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
192 lines (178 loc) · 8.28 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0">
<meta name=”Keywords” Content="教育,培训,英语,外语,背单词,托福,雅思,GRE,高考,SAT">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cpath fill='%23003f8f' d='M6 12h26v8H14v12h14v8H14v12h18v8H6zM36 12h8l18 48h-8z'/%3E%3Cpath fill='%23003f8f' d='M36 60h8l16-48h-8zM76 12h6L72 60h-6z'/%3E%3Cpath fill='%23003f8f' d='M76 12h6l10 48h-6z'/%3E%3Cpath fill='%23003f8f' d='M74 42h10v6H74zM96 12h6v48h-6zM116 12h6v48h-6z'/%3E%3Cpath fill='%23003f8f' d='M96 12h6l10 36h-6z'/%3E%3Cpath fill='%23003f8f' d='M116 12h6l-10 36h-6zM24 68h8v48h-8z'/%3E%3Cpath fill='%23003f8f' d='M24 68h8l-16 32H8zM8 100h28v8H8zM55 68h8v36c0 8 10 8 10 0V68h8v36c0 18-26 18-26 0zM112 82c0-18-26-18-26 0 0 16 18 10 18 21 0 8-10 8-10 0h-8c0 18 26 18 26 0 0-16-18-10-18-21 0-8 10-8 10 0z'/%3E%3C/svg%3E" sizes="16x16 32x32 64x64 128x128" type="image/svg" />
<title>背单词计划表——高考-四级-六级-SAT-托福-雅思-GRE-《17天搞定GRE单词》</title>
<style type="text/css">
a{text-decoration: none;color:#39f; }
body{width: 988px; margin: 0 auto;}
th{text-align: right; font-size: 14px; color: #666;width: 100px;}
td{font-size: 12px;color: #999;padding: 3px 0;}
input{width: 136px;}
input[type=checkbox]{width:auto;}
h1{text-align: center;}
#sidebar{float: left;width: 270px;margin-right: 10px;margin-top: 70px;}
#output{width: 707px;font-family: Verdana;float: left;font-size: 12px;}
#output>span{
width: 100px;
float: left;
height: 20px;
border: 1px solid #aaa;
border-left: none;
text-align: center;
}
#output{border-left: 1px solid #aaa;}
#calendar>div{
width: 97px;
height: 114px;
float: left;
padding-left: 3px;
border-right: 1px solid #aaa;
border-bottom: 1px solid #aaa;
}
@media print{
body{width: 708px;padding:0 !important;}
form{display: none;}
h1{font-size:1.5em;}
.adsbygoogle{opacity: 0 !important;}
}
@media screen and (max-device-width:480px){
h1{width: 100%;float: left;}
body{width: 100%;}
#sidebar{margin:5% 15% 0;}
#output{transform-origin: 0 0;}
}
</style>
<style id="style_js"></style>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8388128301717092" crossorigin="anonymous"></script>
</head>
<body>
<form id="sidebar">
<table>
<tr><th>计划名</th><td><input id="plan"></td></tr>
<tr><th>List 名</th><td><input id="book"></td></tr>
<tr><th>开始日期</th><td><input id="startDate" type="date"></td></tr>
<tr><th>每天List/Page</th><td><input id="listPerDay"></td></tr>
<tr><th>List/Page总数</th><td><input id="totalList"><br></td></tr>
<tr><th>是否逆序</th><td><input id="reverse" type="checkbox"></td></tr>
<tr><td><button id="generate">点击这里生成</button></td><td><button type="button" title="在打印对话框中,更改目标打印机,可以另存为 PDF 文件。" onclick="javascript:window.print()">打印或另存为PDF</button></td></tr>
<tr><td colspan=2>注1:本工具可用于生成任意复习计划表,不仅限于GRE单词。</td></tr>
<tr><td colspan=2>注2:本工具根据最新《<a href="https://www.amazon.cn/gp/product/B0011C0ZQ0/ref=as_li_ss_tl?ie=UTF8&camp=536&creative=3132&creativeASIN=B0011C0ZQ0&linkCode=as2&tag=shawphy-23">17天搞定GRE单词</a>》第二版,第35页上的21天时间表,动态生成时间表。时间间隔为1,2,4,7,15天。与网上流传的老版扫描版略有不同。</td></tr>
<tr><td colspan=2>注3:列表中星号表示复习。按原书建议,上午学习新 list,下午或晚上复习打星的 list。背完或者复习完就可以划掉增加成就感。</td></tr>
<tr><td colspan=2>注4:本页面可直接打印,打印时不会有侧边栏以及广告。打印界面更改目标打印机,可另存为 PDF 文件,更多设置里还可以去掉页眉页脚。实在没办法了就截图放到 Word 里打印。手机上的话建议直接截图保存。</td></tr>
<tr><td colspan=2>注5:本工具建议使用 <a href="https://www.google.com/intl/zh-CN/chrome/browser/">谷歌浏览器</a> 访问。IE 10 以下版本不保证正常使用。 </td></tr>
<tr><td colspan=2>注6:下方广告由Google提供,内容与本站无关。</td></tr>
<tr><td colspan=2>注7:祝大家考试顺利!</td></tr>
</table>
<br>
<!-- 页面侧边广告 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-8388128301717092"
data-ad-slot="3468694309"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</form>
<h1></h1>
<div id="output">
<span>Sun</span>
<span>Mon</span>
<span>Tue</span>
<span>Wed</span>
<span>Thu</span>
<span>Fri</span>
<span>Sat</span>
<div id="calendar"></div>
</div>
<script src="https://cdn.staticfile.org/jquery/3.5.1/jquery.slim.min.js"></script>
<script>
$("#plan").val(localStorage.getItem("plan")||"背单词计划表");
$("#book").val(localStorage.getItem("book")||"L");
$("#listPerDay").val(localStorage.getItem("listPerDay")||"2");
$("#totalList").val(localStorage.getItem("totalList")||"42");
$("#reverse").prop("checked",JSON.parse(localStorage.getItem("reverse"))||false);
$("#startDate").val(localStorage.getItem("startDate")||new Date().toJSON().slice(0,10));
$("#generate").click(function() {
var book=$("#book").val();
var startDate=$("#startDate").val();
var listPerDay=$("#listPerDay").val()-0;
var totalList=$("#totalList").val()-0;
var weekday=new Date(startDate).getDay();
var firstLineSunday=new Date(new Date(startDate)-weekday*86400000);
var calendar=$("#calendar").empty();
var reverse=$("#reverse").prop("checked");
localStorage.setItem("plan",$("#plan").val());
localStorage.setItem("book",book);
localStorage.setItem("startDate",startDate);
localStorage.setItem("listPerDay",listPerDay);
localStorage.setItem("totalList",totalList);
localStorage.setItem("reverse",reverse);
$("h1").text($("#plan").val())
for (var i = 0,l=totalList/listPerDay+29+weekday; i<l; i++) {
currentDay=new Date(firstLineSunday-0+i*86400000);
calendar.append("<div>"+(currentDay.getMonth()-0+1)+"/"+currentDay.getDate()+"</div>")
};
var plan=[];
for (var i = 0,l=totalList/listPerDay; i <l; i++) {
tmp=[];
for (var j = 1; j <= listPerDay; j++) {
k=i*listPerDay+j;
if (k>totalList) break;
tmp.push(k)
};
if(tmp.length==1){
str=tmp[0]
} else {
str=tmp.shift()+"~"+tmp.pop();
}
plan.push(str);
};
for (var i = 0,l=plan.length; i < l; i++) {
calendar.children().eq(weekday+i).append("<br> "+book+" "+plan[reverse?l-i-1:i])
};
var plan=[];
for (var i = 0,l=totalList/listPerDay; i <l; i++) {
tmp=[];
for (var j = 1; j <= listPerDay; j++) {
k=i*listPerDay+j;
if (k>totalList) break;
tmp.push(k)
};
if(tmp.length==1){
str=tmp[0]
} else {
str=tmp.shift()+"~"+tmp.pop();
}
plan.push(str);
};
for (var i = 0,l=plan.length; i < l; i++) {
calendar.children().eq(weekday+i).append("<br>*"+book+" "+plan[reverse?l-i-1:i])
calendar.children().eq(weekday+i+1).append("<br>*"+book+" "+plan[reverse?l-i-1:i])
calendar.children().eq(weekday+i+3).append("<br>*"+book+" "+plan[reverse?l-i-1:i])
calendar.children().eq(weekday+i+7).append("<br>*"+book+" "+plan[reverse?l-i-1:i])
calendar.children().eq(weekday+i+14).append("<br>*"+book+" "+plan[reverse?l-i-1:i])
calendar.children().eq(weekday+i+29).append("<br>*"+book+" "+plan[reverse?l-i-1:i])
};
if($(window).width()<480)$(document).scrollTop($("#sidebar").height())
return false;
}).click()
if($(window).width()<480){
$("#style_js").html("@media screen and (max-device-width:480px){#output{width:497px;transform:scale("+$(window).width()/497+")}#output>span{width:70px;}#calendar>div{width:67px}")
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-43415723-1', 'exam4.us');
ga('send', 'pageview');
</script>
</body>
</html>