source: trunk/plugins/FullPage/popups/docprop.html @ 248

Last change on this file since 248 was 248, checked in by gocher, 14 years ago

Ticket #265 little bit modified
full page plugin meta tag patch (new: keywords, description)

change docprop.html that the dialog in IE looks as in Mozilla

  • Property svn:eol-style set to native
  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 3.2 KB
Line 
1<html>
2
3<head>
4  <title>Document properties</title>
5
6<script type="text/javascript" src="../../../popups/popup.js"></script>
7<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
8
9<script type="text/javascript">
10
11FullPage = window.opener.FullPage; // load the FullPage plugin and lang file ;-)
12window.resizeTo(400, 130);
13
14  var accepted = {
15      f_doctype       : true,
16      f_title         : true,
17      f_body_bgcolor  : true,
18      f_body_fgcolor  : true,
19      f_base_style    : true,
20      f_alt_style     : true,
21      f_charset       : true,
22      f_keywords      : true,
23      f_description   : true
24  };
25
26var editor = null;
27function Init() {
28  __dlg_translate('FullPage');
29  __dlg_init();
30  var params = window.dialogArguments;
31  for (var i in params) {
32      if (i in accepted) {
33        var el = document.getElementById(i);
34        el.value = params[i];
35      }
36  }
37  editor = params.editor;
38  document.getElementById("f_title").focus();
39  document.getElementById("f_title").select();
40};
41
42function onOK() {
43  var required = {
44  };
45  for (var i in required) {
46    var el = document.getElementById(i);
47    if (!el.value) {
48      alert(required[i]);
49      el.focus();
50      return false;
51    }
52  }
53
54  var param = {};
55  for (var i in accepted) {
56    var el = document.getElementById(i);
57    param[i] = el.value;
58  }
59  __dlg_close(param);
60  return false;
61};
62
63function onCancel() {
64  __dlg_close(null);
65  return false;
66};
67
68</script>
69<style type="text/css">
70.fr { width: 11em; float: left; padding: 2px 5px; text-align: right; }
71</style>
72  </head>
73
74  <body class="dialog" onload="Init()">
75
76    <div class="title">Document properties</div>
77   
78    <div class="fr">Document title:</div>
79    <input type="text" id="f_title" style="width: 200px" />
80    <br />
81    <div class="fr">DOCTYPE:</div>
82    <input type="text" id="f_doctype" style="width: 200px" />
83    <br />
84    <div class="fr">Keywords:</div>
85    <input type="text" id="f_keywords" style="width: 200px" />
86    <br />
87    <div class="fr">Description:</div>
88    <input type="text" id="f_description" style="width: 200px" />
89    <br />
90    <div class="fr">Primary style-sheet:</div>
91    <input type="text" id="f_base_style" style="width: 200px" />
92    <br />
93    <div class="fr">Alternate style-sheet:</div>
94    <input type="text" id="f_alt_style" style="width: 200px" />
95    <br />
96    <div class="fr">Background color:</div>
97    <input type="text" id="f_body_bgcolor" size="7" />
98    <br />
99    <div class="fr">Text color:</div>
100    <input type="text" id="f_body_fgcolor" size="7" />
101    <br />
102    <div class="fr">Character set:</div>
103    <select id="f_charset">
104          <option value=""></option>
105          <option value="utf-8">UTF-8 (recommended)</option>
106          <option value="windows-1251">cyrillic (WINDOWS-1251)</option>
107          <option value="koi8-r">cyrillic (KOI8-R)</option>
108          <option value="iso-8859-5">cyrillic (ISO-8859-5)</option>
109          <option value="iso-8859-1">western (ISO-8859-1)</option>
110        </select>
111    <br />
112   
113    <div id="buttons">
114      <button type="button" name="ok" onclick="return onOK();"><span>OK</span></button>
115      <button type="button" name="cancel" onclick="return onCancel();"><span>Cancel</span></button>
116    </div>
117
118  </body>
119</html>
Note: See TracBrowser for help on using the repository browser.