comparison src/example.html @ 4:b7725dab7482

move /development/* to /
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 04 Aug 2022 17:59:02 -0600
parents c7c738ddbbf8
children
comparison
equal deleted inserted replaced
3:ec68006a495e 4:b7725dab7482
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 4 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
5 5
6 <title>SCEditor Demo</title> 6 <title>SCEditor Demo</title>
7 7
8 <link rel="stylesheet" href="development/themes/default.css" id="theme-style" /> 8 <link rel="stylesheet" href="/themes/default.css" id="theme-style" />
9 9
10 <script src="development/sceditor.js"></script> 10 <script src="/sceditor.js"></script>
11 <script src="development/icons/monocons.js"></script> 11 <script src="/icons/monocons.js"></script>
12 <script src="development/formats/bbcode.js"></script> 12 <script src="/formats/bbcode.js"></script>
13 13
14 <style> 14 <style>
15 html { 15 html {
16 font-family: Arial, Helvetica, sans-serif; 16 font-family: Arial, Helvetica, sans-serif;
17 font-size: 13px; 17 font-size: 13px;
72 <script> 72 <script>
73 var textarea = document.getElementById('example'); 73 var textarea = document.getElementById('example');
74 sceditor.create(textarea, { 74 sceditor.create(textarea, {
75 format: 'bbcode', 75 format: 'bbcode',
76 icons: 'monocons', 76 icons: 'monocons',
77 style: 'development/themes/content/default.css' 77 style: '/themes/content/default.css'
78 }); 78 });
79 79
80 80
81 var themeInput = document.getElementById('theme'); 81 var themeInput = document.getElementById('theme');
82 themeInput.onchange = function() { 82 themeInput.onchange = function() {
83 var theme = 'development/themes/' + themeInput.value + '.css'; 83 var theme = '/themes/' + themeInput.value + '.css';
84 84
85 document.getElementById('theme-style').href = theme; 85 document.getElementById('theme-style').href = theme;
86 }; 86 };
87 </script> 87 </script>
88 88