forked from nakajmg/ScriptAutoRunner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
42 lines (42 loc) · 1.71 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ScriptAutoRunner</title>
<link rel="stylesheet" href="css/fontello-embedded.css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/base.css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/popup.css" media="screen" title="no title" charset="utf-8">
</head>
<body>
<div id="app" v-cloak v-bind:class="{'sra-power--off': !power}">
<div class="sra-header">
<span v-on:click="togglePower"><i class="icon-flash"></i></span>
<span>ScriptAutoRunner</span>
<span v-on:click="openOption"><i class="icon-cog"></i></span>
</div>
<div class="sra-main">
<ul class="sra-scripts">
<li v-show="count() && !isEcludeHost()" class="sra-noscript">
No available Scripts on this host.
</li>
<li v-show="isExcludeHost()" class="sra-noscript">
This host is excluded.
</li>
<li class="sra-script" v-bind:class="{'sra-script--enable': script.enable}" v-for="script in scripts" v-show="isMatch(script.host)">
<div class="sra-script__main">
<span><i v-bind:class="{'icon-link': script.type=='external', 'icon-code': script.type=='snippet'}"></i></span>
<span>{{script.name}}</span>
<span><i v-on:click="toggle($index)" class="icon-plug"></i></span>
</div>
</li>
</ul>
</div>
<div class="sra-footer">
Displayed only available Scripts on this host.
</div>
{{example}}
</div>
<script src="js/lib/vue.min.js"></script>
<script src="js/popup.js"></script>
</body>
</html>