forked from joaool/MotherGithub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page_editor.html
183 lines (163 loc) · 7.17 KB
/
page_editor.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>page editor v1.0</title>
<!-- <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="fragment" content="!">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400' rel='stylesheet' type='text/css'> -->
<!-- <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> -->
<!-- <link rel="shortcut icon" href="FL_ui/img/favicon.ico" /> -->
<link rel="shortcut icon" href="FL_ui/img/favicon.ico" />
<!-- <link rel="icon" href="FL_ui/img/favicon.ico" type="image/x-icon" /> -->
<script src="FL_ui/js/jquery-1.11.1.js" type="text/javascript"></script>
<!-- <script src="../smartmenus-master/src/libs/demo-assets/bootstrap/js/bootstrap.min.js"></script> -->
<!-- <script src="FL_ui/js/bootstrap.min.js"></script> -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" />
<script type="text/javascript" src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" />
<link href="FL_ui/css/bootstrap-dialog.css" rel="stylesheet" type="text/css" />
<script src="FL_ui/js/bootstrap-dialog.js"></script>
<script src="FL_ui/js/FLCommon2.js"></script>
<!-- <link href="FL_ui/css/FLcosmos.css" rel="stylesheet"> -->
<link href="FL_ui/css/FLreadable.css" rel="stylesheet">
<!-- <link href="FL_ui/css/FLred.css" rel="stylesheet"> -->
<!-- <link href="FL_ui/css/FLcerulean.css" rel="stylesheet"> -->
<!-- <link href="FL_ui/css/FLspacelab.css" rel="stylesheet"> -->
<!-- <link href="../smartmenus-master/src/addons/bootstrap/jquery.smartmenus.bootstrap.css" rel="stylesheet"> -->
<script src="FL_ui/js/underscore-min.js"></script>
<!-- <script src="js/jquery-1.11.1.min.js"></script> -->
<!-- // <script src="FL_ui/js/backbone-min.js"></script> -->
<!-- <script src="js/bootstrap.min.js"></script> -->
<!-- necessary for backgrid -->
<script src="FL_ui/js/FLdd2.js"></script>
<script src="FL_ui/js/FLCommon2.js"></script>
<script src="FL_ui/flClient/flClient.js"></script>
<script src="FL_ui/flClient/ajaxBrowser.js"></script>
<!-- <script src="FL_ui/js/FLServer.js"></script> -->
<script src="FL_ui/js/FLLoadCss2.js"></script>
<script src="FL_ui/js/FLAPI.js"></script>
<script type="text/javascript" src="FL_ui/js/tinymce.js"></script>
<script src="./pageEditor/FLpage_editor.js"></script>
<!-- <script src="js/main3.js"></script> -->
<!--
-->
</head>
<script id="pageEditorTemplate" type="text/template">
<div class="container">
<h2 id='pageTitle'>FrameLinkZ Page Editor</h2>
<div class="form-actions">
<a href="javascript:exitSaving()" class="btn btn-primary save">Save & Exit</a>
<a href="javascript:exitNoSave()" class="btn btn-danger">Exit without saving</a>
</div>
<div id="xmy_editor"></div>
<textarea id="my_editor"></textarea>
<div id="lawsContent"></div>
</div>
<footer class="footer">
<div class="container">
<p>©2015 FrameLink Co. <a href="http://www.framelink.co/contacts.html" target="">@support</a>.</p>
</div>
</footer>
</script>
<body style="padding-top:10px;">
<!-- ->
<div class="container">
<h2 id='pageTitle'>FrameLink Page Editor</h2>
<div class="form-actions">
<a href="javascript:exitSaving()" class="btn btn-primary save">Save & Exit</a>
<a href="javascript:exitNoSave()" class="btn btn-danger">Exit without saving</a>
</div>
<div id="xmy_editor"></div>
<textarea id="my_editor"></textarea>
<div id="lawsContent"></div>
</div>
<footer class="footer">
<div class="container">
<p>©2014 FrameLink Co. <a href="http://www.framelink.co/contacts.html" target="">@support</a>.</p>
</div>
</footer>
-->
<div id="_placeHolder"></div>
<script>
// alert("inside page_editor");
// var z = 32;
function browserDetection() { //tested for 5 browsers (updated versions)
var xRet = null;
if (navigator.userAgent.search("MSIE") >= 0 || navigator.userAgent.search(".NET") >= 0 ) {
xRet = "InternetExplorer";
}
else if (navigator.userAgent.search("Chrome") >= 0) {
xRet = "Chrome";
}
else if (navigator.userAgent.search("Firefox") >= 0) {
xRet = "FireFox";
}
else if (navigator.userAgent.search("Safari") >= 0 && navigator.userAgent.search("Chrome") < 0) {
xRet = "Safari";
}
else if (navigator.userAgent.search("Opera") >= 0) {
xRet = "Opera";
}
return xRet;
};
function closeWindows() {
//IE - closes but ask message
//Chrome - closes but ask message
//FireFox - closes but ask message
//Safari - closes but ask message
// var browserName = navigator.appName;
var browserName = browserDetection();
var browserJO = navigator.userAgent;
var browserVer = parseInt(navigator.appVersion);
// alert(" userAgent="+browserJO + " : "+browserVer);
// alert("Browser="+browserName);
//document.getElementById("flashContent").innerHTML = "<br> <font face='Arial' color='blue' size='2'><b> You have been logged out of the Game. Please Close Your Browser Window.</b></font>";
if(browserName == "InternetExplorer"){
var ie7 = (document.all && !window.opera && window.XMLHttpRequest) ? true : false;
if (ie7)
{
//This method is required to close a window without any prompt for IE7 & greater versions.
// window.open('','_parent','');
// window.open('','_self','');
// window.close();
window.open('javascript:window.open("", "_self", "");window.close();', '_self');
}
else
{
//This method is required to close a window without any prompt for IE6
// this.focus();
// self.opener = this;
// self.close();
window.open('javascript:window.open("", "_self", "");window.close();', '_self');
}
}else{
//For NON-IE Browsers except Firefox which doesnt support Auto Close
try{
// alert("Browser is NON-IE");
window.open('javascript:window.open("", "_self", "");window.close();', '_self');
// this.focus();
// self.opener = this;
// self.close();
}
catch(e){
}
try{
// alert("Browser is FireFox");
window.open('javascript:window.open("", "_self", "");window.close();', '_self');
// window.open('','_self','');
// window.close();
}
catch(e){
}
}
};
</script>
</body>
</html>