scratch – Diff between revs 34 and 35
?pathlinks?
Rev 34 | Rev 35 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | <!DOCTYPE html> |
1 | <!DOCTYPE html> |
|
2 | <html lang="en"> |
2 | <html lang="en"> |
|
3 | <head> |
3 | <head> |
|
4 | <meta charset="utf-8"> |
4 | <meta charset="utf-8"> |
|
5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|
- | 6 | <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> |
||
- | 7 | <meta http-equiv="Pragma" content="no-cache" /> |
||
- | 8 | <meta http-equiv="Expires" content="0" /> |
||
6 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
9 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
|
7 | <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> |
10 | <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> |
|
8 | <meta name="description" content="quick asset upload"> |
11 | <meta name="description" content="quick asset upload"> |
|
9 | <meta name="author" content="Wizardry and Steamworks"> |
12 | <meta name="author" content="Wizardry and Steamworks"> |
|
10 | <link rel="icon" href="favicon.ico"> |
13 | <link rel="icon" href="favicon.ico"> |
|
Line 105... | Line 108... | |||
105 | $('#trumbowyg').trumbowyg('enable'); |
108 | $('#trumbowyg').trumbowyg('enable'); |
|
106 | }); |
109 | }); |
|
107 | }); |
110 | }); |
|
Line 108... | Line 111... | |||
108 | |
111 | |
|
109 | // Retrieve the contents of the shared file. |
112 | // Retrieve the contents of the shared file. |
|
110 | $.get('share-text.php', |
113 | $.get('share-text.php' + '?t=' + window.performance.now(), |
|
111 | { |
- | ||
112 | headers: { |
- | ||
113 | 'Cache-Control': 'no-cache, no-store, must-revalidate', |
- | ||
114 | 'Pragma': 'no-cache', |
- | ||
115 | 'Expires': '0' |
- | ||
116 | }, |
114 | { |
|
117 | cache: false |
115 | cache: false |
|
118 | }).done((data) => { |
116 | }).done((data) => { |
|
119 | $('#trumbowyg') |
117 | $('#trumbowyg') |
|
120 | .trumbowyg('html', data); |
118 | .trumbowyg('html', data); |
|
Line 142... | Line 140... | |||
142 | |
140 | |
|
143 | $.ajax({ |
141 | $.ajax({ |
|
144 | url: 'upload-files.php', |
142 | url: 'upload-files.php', |
|
145 | type: 'POST', |
143 | type: 'POST', |
|
146 | data: formData, |
- | ||
147 | headers: { |
- | ||
148 | 'Cache-Control': 'no-cache, no-store, must-revalidate', |
- | ||
149 | 'Pragma': 'no-cache', |
- | ||
150 | 'Expires': '0' |
- | ||
151 | }, |
144 | data: formData, |
|
152 | cache: false, |
145 | cache: false, |
|
153 | processData: false, |
146 | processData: false, |
|
154 | contentType: false |
147 | contentType: false |
|
155 | }).done((data) => { |
148 | }).done((data) => { |