-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
117 lines (88 loc) · 3.53 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
<!DOCTYPE html>
<html ng-app="app">
<head>
<link rel="stylesheet" href="mdl.min.css">
<script src="angular.min.js"></script>
<script src="mdl.min.js"></script>
<script src="script.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<style>
* {
padding: 0;
margin: 0;
}
table a {
text-decoration: none;
}
body {
width: 350px;
overflow: scroll;
}
img {
width: 20px;
}
table td {
font-weight: bold;
white-space: -o-pre-wrap;
word-wrap: break-word;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
}
table {
margin-top: 10px;
margin-left: auto;
margin-right: auto;
white-space: normal;
table-layout: fixed;
width: 350px;
}
</style>
</head>
<body ng-controller="MyCtrl">
<div class="mdl-tooltip" data-mdl-for="extractbtn">
Extract url(s)
</div>
<div class="mdl-tooltip" data-mdl-for="savebtn">
Save all url(s)
</div>
<div class="mdl-tooltip" data-mdl-for="getbtn">
Show saved url(s)
</div>
<div class="mdl-tooltip" data-mdl-for="clearbtn">
Clear all url(s)
</div>
<div class="mdl-tooltip" data-mdl-for="openbtn">
Open all saved url(s)
</div>
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" id="extractbtn" ng-click="extract()">
<i class="material-icons">file_download</i></button>
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" id="savebtn" ng-click="saveURLS()">
<i class="material-icons">save</i></button>
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" id="getbtn" ng-click="getURLS()">
<i class="material-icons">visibility</i></button>
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" id="clearbtn" ng-click="clear()"><i class="material-icons">delete_forever</i></button>
<button ng-click="openUrls()" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" id="openbtn">Open</button>
<table ng-show="array.length>0 && show_extract_table==1" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric">Title(s)</th>
<th class="mdl-data-table__cell--non-numeric">Url(s)</th>
</tr>
</thead>
<tbody ng-repeat="item in array track by $index">
<tr>
<td class="mdl-data-table__cell--non-numeric"><img ng-src="{{item.favIconUrl}}"> {{item.title}}</td>
<td class="mdl-data-table__cell--non-numeric"><a href="{{item.url}}" target="_blank">{{item.url}}</a></td>
</tr>
</tbody>
</table>
<table ng-show="URLS.length>0 && show_display_table==1" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp" id="test">
<tbody ng-repeat="i in URLS track by $index">
<tr>
<td class="mdl-data-table__cell--non-numeric"><a href="{{i}}" target="_blank">{{i}}</a></td>
</tr>
</tbody>
</table>
</body>
</html>