-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpopup.html
118 lines (112 loc) · 4.23 KB
/
popup.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
<!doctype html>
<!--
Material Design Lite
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="A front-end template that helps you build fast, modern mobile web apps.">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<title>Paper Downloader</title>
<link rel="stylesheet" href="css/material.min.css">
<link rel="stylesheet" href="css/styles.css">
<style>
#save{
position: fixed;
display: block;
right: 0;
top: 0;
margin-right: 8px;
margin-top: 1px;
z-index: 900;
}
.mdl-layout__header-row{
height: 26px;
margin-left: -16px;
}
.mdl-layout__header{
min-height: 38px;
position: fixed;
}
.mdl-demo{
min-width: 450px;
min-height: 588px;
}
main{
margin-top: 32px;
}
h6{
margin: 0px;
font-weight: bold;
}
.mdl-card__supporting-text{
-webkit-text-fill-color:rgb(179, 169, 169);
}
.mdl-card__actions{
-webkit-text-fill-color: black;
}
</style>
</head>
<body class="mdl-demo mdl-color--grey-100 mdl-color-text--grey-700 mdl-base">
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class=" mdl-layout__header-row">
<h5>Settings </h5>
</div>
</header>
<main class="mdl-layout__content">
<div class="mdl-layout__tab-panel is-active" id="overview">
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col">
<div class="mdl-card__actions mdl-shadow--2dp">
<h6>Set file name format:</h6>
<input class="mdl-textfield__input" type="text" id="file_name_format">
</div>
<div class="mdl-card__supporting-text">
<h6>Rules:</h6>
%engine : search website mark <br/>
%year : article publish year <br/>
%month : article publish month <br/>
%title : article title <br/>
%authors: article authors <br/>
%journal: article journal <br/>
<h6>Example:</h6>
[%engine][%year.%month] %title <br/>
(You will get a pdf file like this : [ArXiv][2018.6] PatchFCN for Intracranial Hemorrhage Detection.pdf)
</div>
</div>
</section>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col">
<div class="mdl-card__actions mdl-shadow--2dp">
<h6>Set save folder path:</h6>
<input class="mdl-textfield__input" type="text" id="save_folder">
</div>
<div class="mdl-card__supporting-text">
<h6>Rules:</h6>
Relative path to your browser download folder.
<h6>Example:</h6>
Papers/ <br/>
(You will save your pdf file in the C:/Users/x/Downloads/Paper/ folder if your browser download folder is C:/Users/x/Downloads/)
</div>
</div>
</section>
</div>
</main>
</div>
<input type="button" id="save" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-color--accent mdl-color-text--accent-contrast" value = " Save "/>
<script src="js/material.min.js"></script>
<script src="js/popup.js"></script>
</body>
</html>