source: releases/0.91beta/plugins/UnFormat/popups/unformat.html @ 652

Last change on this file since 652 was 652, checked in by ray, 13 years ago

release 0.91beta with changed namespace

File size: 2.1 KB
Line 
1<html>
2
3<head>
4<title>Page Cleaner</title>
5<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
6<script type="text/javascript" src="../../../popups/popup.js"></script>
7<script type="text/javascript">
8
9
10
11UnFormat = window.opener.UnFormat;
12window.resizeTo(300, 100);
13
14var x = opener.screenX + (opener.outerWidth - window.outerWidth) / 2;
15var y = opener.screenY + (opener.outerHeight - window.outerHeight) / 2;
16window.moveTo(x, y);
17
18
19function Init() {
20  __dlg_translate('UnFormat');
21  __dlg_init();
22}
23
24function onOK() {
25  var param = new Object();
26
27  if (document.getElementById('clean_selection').checked) {
28    param["cleaning_area"] = "selection";
29  } else {
30    param["cleaning_area"] = "all";
31  }
32
33  var fields = ["formatting", "html_all"];
34
35  for (var i in fields) {
36    var id = fields[i];
37    var el = document.getElementById(id);
38    if (el.checked)     {param[id] = true;}
39  }
40
41  __dlg_close(param);
42  return false;
43}
44
45function onCancel() {
46  __dlg_close(null);
47  return false;
48}
49
50</script>
51</head>
52
53<body class="Dialog" onload="Init();self.focus();">
54
55<div class="title">Page Cleaner</div>
56
57<form action="" method="get">
58  <fieldset>
59  <legend>Cleaning Area</legend>
60    <span>Selection</span><input type="radio" name="cleaning_area" id="clean_selection" value="selection" checked="checked" />
61    <span>All</span><input type="radio" name="cleaning_area" id="clean_page" value="page" />
62  </fieldset>
63  <br>
64  <fieldset>
65  <legend>Cleaning options</legend>
66    <div class="space"></div>
67    <div class="fr">Formatting:</div>
68    <input type="checkbox" id="formatting" value="" checked />
69    <p />
70    <div class="fr">All HTML:</div>
71    <input type="checkbox" id="html_all" value="" />
72    <p />
73   </fieldset>
74   <br /><br />
75   <p style="text-align:center"><span>Select which types of formatting you would like to remove.</span></p>
76
77<div id="buttons">
78  <button type="button" name="ok" onclick="return onOK();">OK</button>
79  <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
80</div>
81
82</form>
83
84</body>
85</html>
Note: See TracBrowser for help on using the repository browser.