-
Notifications
You must be signed in to change notification settings - Fork 3
/
popup.html
154 lines (150 loc) · 6.75 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
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
<!--///////////////////////////////////////////////////////////////////////
// //
// Switchy! Chrome Proxy Manager and Switcher //
// Copyright (c) 2009 Mohammad Hejazi (mohammadhi at gmail d0t com) //
// Dual licensed under the MIT and GPL licenses. //
// //
////////////////////////////////////////////////////////////////////////-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="assets/styles/popup.css" type="text/css">
<script src="assets/scripts/popup.js" type="text/javascript"></script>
<script>
quickSwitchProxy();
</script>
<script src="assets/libs/jquery-1.4.min.js" type="text/javascript"></script>
</head>
<body onload="init()" i18n-values=".style.direction:global_direction;.style.textAlign:global_textAlign">
<div id="menu">
<div id="directConnection" name="[Direct Connection]" class="item proxy" title="Disable Proxy"
i18n-values="title:proxy_directConnection_help">
<div class="icon"></div><span i18n-content="proxy_directConnection">Direct Connection</span>
</div>
<div id="separatorProxies" class="separator"></div>
<div id="proxies">
<div class="templateItem" title="">
<div class="icon"></div><span>Proxy</span>
</div>
</div>
<div id="separatorRules" class="separator"></div>
<div id="automaticMode" class="item proxy" title="Automatically choose the proper proxy profile for each URL, based on Switch Rules."
i18n-values="title:popup_autoSwitchMode_help">
<div class="icon"></div><span i18n-content="popup_autoSwitchMode">Auto Switch Mode</span>
</div>
<div id="menuAddRule" class="item" onclick="showAddRule();" title="Quickly add a new Switch Rule for the current website."
i18n-values="title:popup_newRule_help">
<img src="assets/images/filter-add.png" /><span i18n-content="popup_newRule">New Rule</span>
</div>
<div id="menuDeleteRule" class="item" onclick="showDeleteRule();" title="Delete the Switch Rule associated with current website."
xi18n-values="title:popup_deleteRule_help">
<img src="assets/images/filter-delete.png" /><span xi18n-content="popup_deleteRule">Delete Rule</span>
</div>
<div id="separatorOptions" class="separator"></div>
<div id="menuOptions" class="item" onclick="openOptions();">
<img src="assets/images/options.png" /><span i18n-content="popup_options">Options</span>
</div>
<div id="menuAbout" class="item" onclick="showAbout();">
<img src="assets/images/about.png" /><span i18n-content="popup_aboutSwitchy">About Switchy!</span>
</div>
<div id="separatorError" class="separator"></div>
<div id="menuError" class="item" onclick="openErrorLog();" title="Switchy! isn't working properly. Click to open the error log."
i18n-values="title:popup_diagnoseError_help">
<img src="assets/images/error2.png" /><span i18n-content="popup_diagnoseError">Not Working Properly</span>
</div>
</div>
<div id="about">
<div class="close"><img src="assets/images/close.png" /></div>
<div class="header">
<table>
<tr>
<td><img src="assets/images/icon-128.png" width="70" /></td>
<td>
<table class="titleTable">
<tr><td colspan="2"><div class="title">Switchy!</div></td></tr>
<tr>
<td width="1" class="version" i18n-content="popup_version">version</td>
<td class="version"><span class="versionNumber"></span></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="body">
<div id="developer"><div class="name">
<table>
<tr>
<td i18n-content="popup_developedBy">Developed by</td>
<td> Mhd Hejazi</td>
</tr>
</table>
</div></div>
<div id="changeLog">
<div class="title">What's new?</div>
<div class="item"><b>• Support for Mac OS X.</b></div>
<div class="item"><b>• Better support for Linux.</b></div>
<div class="item"><b>• Switch Rules support PAC scripts now.</b></div>
<div><a href="" onclick="openExtensionGalleryWebsite();">full change log..</a></div>
</div>
<span><img src="assets/images/chrome.png" valign="middle" />
<a href="" onclick="openExtensionGalleryWebsite();" i18n-content="popup_chromeExtensionGallery">Chrome Extension Gallery</a>
</span><br />
<span><img src="assets/images/web.png" valign="middle" />
<a href="" onclick="openMainWebsite();" i18n-content="popup_switchyWebPage">Switchy! web page</a>
</span><br />
<span><img src="assets/images/web.png" valign="middle" />
<a href="" onclick="openSupportWebsite();" i18n-content="popup_supportAndBugReports">Support & Bug reports</a>
</span><br />
<span><img src="assets/images/twitter.png" valign="middle" />
<a href="" onclick="openTwitterPage();" xi18n-content="popup_followUsOnTwitter">Follow us on Twitter</a>
</span><br />
<span><img src="assets/images/mail.png" valign="middle" />
<a href="" onclick="openContactEmail();">[email protected]</a>
</span>
</div>
<div class="footer">
<div i18n-content="popup_copyright">Copyright © 2009 Samabox. Some rights reserved.</div>
</div>
</div>
<div id="addRule">
<div class="header title" i18n-content="popup_newRule">New Rule</div>
<div class="header light">
<table>
<tr>
<th i18n-content="options_ruleName">Rule Name</th>
<td><input id="txtRuleName" type="text" value="Quick Rule"></td>
</tr>
<tr>
<th><b i18n-content="options_urlPattern">URL Pattern</b></th>
<td><input id="txtUrlPattern" type="text" class="ltr"></td>
</tr>
<tr class="note">
<th></th>
<td><div class="invalid" i18n-content="popup_duplicateRules">* There is already a rule for this URL Pattern.</div></td>
</tr>
<tr>
<th i18n-content="options_patternType">Pattern Type</th>
<td><select id="cmbPatternType">
<option value="wildcard" i18n-content="options_patternTypeWildcard">Wildcard</option>
<option value="regexp" i18n-content="options_patternTypeRegExp">RegExp</option>
</select></td>
</tr>
<tr>
<th i18n-content="options_proxyProfile">Proxy Profile</th>
<td><select id="cmbProfileId"></select></td>
</tr>
</table>
</div>
<table class="control">
<tr>
<td width="100%"></td>
<td><button class="button bold" id="btnSave" onclick="addSwitchRule();" i18n-content="popup_add">Add</button></td>
<td> </td>
<td><button class="button" id="btnCancel" onclick="closePopup();" i18n-content="popup_cancel">Cancel</button></td>
</tr>
</table>
<br />
<br />
</div>
</body>
</html>