Commit c6b07d8aa336de7b6e376036b884a8cc26e359e7
- Diff rendering mode:
- inline
- side by side
server/stylesheet.css
(0 / 14)
  | |||
12 | 12 | } | |
13 | 13 | ||
14 | 14 | #close-button { | |
15 | color:#FFF; | ||
16 | background: -moz-linear-gradient(center bottom, #000 0%, #FFF 100%); -webkit-linear-gradient(center bottom, #000 0%, #FFF 100%); | ||
17 | border: 1px solid #777; | ||
18 | border-radius: 3px; -moz-border-radius:10px; -webkit-border-radius:3px; | ||
19 | 15 | height:20px; | |
20 | 16 | margin-right:1px; | |
21 | 17 | text-align:center; | |
22 | 18 | width:50px; | |
23 | 19 | font-size:14px; | |
24 | 20 | font-weight:bold; | |
25 | color:#fff; | ||
26 | 21 | background-color:#2f6270; | |
27 | 22 | float:right; | |
28 | 23 | } | |
… | … | ||
49 | 49 | } | |
50 | 50 | ||
51 | 51 | #menu-button { | |
52 | color:#FFF; | ||
53 | background: #222; | ||
54 | border:3px solid; | ||
55 | border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px; | ||
56 | 52 | text-align:center; | |
57 | 53 | font-size:14px; | |
58 | 54 | float:left; | |
… | … | ||
59 | 59 | } | |
60 | 60 | ||
61 | 61 | #edit-button { | |
62 | color:#FFF; | ||
63 | background: -moz-linear-gradient(center bottom, #000 0%, #FFF 100%); -webkit-linear-gradient(center bottom, #000 0%, #FFF 100%); | ||
64 | border: 1px solid #777; | ||
65 | border-radius: 3px; -moz-border-radius:10px; -webkit-border-radius:3px; | ||
66 | 62 | text-align:center; | |
67 | 63 | margin-top:10px; | |
68 | 64 | margin-left:20px; | |
… | … | ||
66 | 66 | height:30px; | |
67 | 67 | font-size:20px; | |
68 | 68 | font-weight:bold; | |
69 | color:#fff; | ||
70 | 69 | } |
server/wsgi/page_edit.js
(36 / 16)
  | |||
1797 | 1797 | source: function(req, add){ | |
1798 | 1798 | ||
1799 | 1799 | //pass request to server | |
1800 | $.getJSON("http://dev.a11y.in/getData?", req, function(data) { | ||
1800 | $.getJSON("http://localhost/getData?", req, function(data) { | ||
1801 | 1801 | ||
1802 | 1802 | //create array for response objects | |
1803 | 1803 | var suggestions = []; | |
… | … | ||
1821 | 1821 | source: function(req, add){ | |
1822 | 1822 | ||
1823 | 1823 | //pass request to server | |
1824 | $.getJSON("http://dev.a11y.in/getLang?", req, function(data) { | ||
1824 | $.getJSON("http://localhost/getLang?", req, function(data) { | ||
1825 | 1825 | ||
1826 | 1826 | //create array for response objects | |
1827 | 1827 | var suggestions = []; | |
… | … | ||
2176 | 2176 | } | |
2177 | 2177 | } | |
2178 | 2178 | } | |
2179 | xmlhttp.open("POST","http://dev.a11y.in/narration",true); | ||
2179 | xmlhttp.open("POST","http://localhost/narration",true); | ||
2180 | 2180 | xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); | |
2181 | 2181 | xmlhttp.send(data); | |
2182 | 2182 | ||
… | … | ||
2865 | 2865 | ||
2866 | 2866 | messageDiv = DOM.BUILDER.DIV(editAttributes.addStyle('font-weight:italic; font-size:20px; font-family: Helvetica Neue,Helvetica,Arial,Sans-serif; position:absolute; left:30%; width:100%; display:inline-block; color:#fff;').values()); | |
2867 | 2867 | ||
2868 | redButtonStyleAttributes = panelButtonAttributes.put({id : 'publish'}).addStyle('position:absolute; top:-13px; right:04%; width:22%; height:25px; color:#FFF; font-size:18px; text-align:center; background: #AAA; background: -moz-linear-gradient(center bottom, #000 0%, #FFF 100%); -webkit-linear-gradient(center bottom, #000 0%, #FFF 100%); border: 1px solid #777; border-radius: 3px; -moz-border-radius:10px; -webkit-border-radius:3px; border: 1px solid #777;').values(); | ||
2868 | publishButton = document.createElement("input"); | ||
2869 | publishButton.setAttribute("id", "publish"); | ||
2870 | publishButton.setAttribute("alipielements", "alipi"); | ||
2871 | publishButton.setAttribute("type", "submit"); | ||
2872 | publishButton.setAttribute("Value", "Publish"); | ||
2873 | publishButton.setAttribute("style", "margin-left:100px;font-size:18px;font-weight:bold;"); | ||
2869 | 2874 | ||
2870 | undoButtonStyleAttributes = panelButtonAttributes.addStyle('position:absolute; left:35%; top:-13px; width:15%; height:25px; color:#FFF; font-size:18px; text-align:center; background: #AAA; background: -moz-linear-gradient(center bottom, #000 0%, #FFF 100%); -webkit-linear-gradient(center bottom, #000 0%, #FFF 100%); border: 1px solid #777; border-radius: 3px; -moz-border-radius:10px; -webkit-border-radius:3px; border: 1px solid #777;').values(); | ||
2875 | undoButton = document.createElement("input"); | ||
2876 | undoButton.setAttribute("id", "undo"); | ||
2877 | undoButton.setAttribute("alipielements", "alipi"); | ||
2878 | undoButton.setAttribute("type", "submit"); | ||
2879 | undoButton.setAttribute("Value", "Undo"); | ||
2880 | undoButton.setAttribute("style", "margin-left:100px;font-size:18px;font-weight:bold;"); | ||
2871 | 2881 | ||
2872 | helpLinkStyleAttributes = panelButtonAttributes.addStyle('position:absolute; left:0%; top:-13px; width:15%; height:25px; color:#FFF; font-size:18px; text-align:center; background: #AAA; background: -moz-linear-gradient(center bottom, #000 0%, #FFF 100%); -webkit-linear-gradient(center bottom, #000 0%, #FFF 100%); border: 1px solid #777; border-radius: 3px; -moz-border-radius:10px; -webkit-border-radius:3px; border: 1px solid #777;').values(); | ||
2882 | helpLink = document.createElement("input"); | ||
2883 | helpLink.setAttribute("id", "help"); | ||
2884 | helpLink.setAttribute("alipielements", "alipi"); | ||
2885 | helpLink.setAttribute("type", "submit"); | ||
2886 | helpLink.setAttribute("Value", "Help"); | ||
2887 | helpLink.setAttribute("style", "margin-left:00px;font-size:18px;font-weight:bold;"); | ||
2873 | 2888 | ||
2874 | publishButton = DOM.BUILDER.BUTTON(redButtonStyleAttributes, 'Publish'); | ||
2889 | // redButtonStyleAttributes = panelButtonAttributes.put({id : 'publish'}).addStyle('position:absolute; top:-13px; right:04%; width:22%; height:25px; color:#FFF; font-size:18px; text-align:center; background: #AAA; background: -moz-linear-gradient(center bottom, #000 0%, #FFF 100%); -webkit-linear-gradient(center bottom, #000 0%, #FFF 100%); border: 1px solid #777; border-radius: 3px; -moz-border-radius:10px; -webkit-border-radius:3px; border: 1px solid #777;').values(); | ||
2890 | |||
2891 | // undoButtonStyleAttributes = panelButtonAttributes.addStyle('position:absolute; left:35%; top:-13px; width:15%; height:25px; color:#FFF; font-size:18px; text-align:center; background: #AAA; background: -moz-linear-gradient(center bottom, #000 0%, #FFF 100%); -webkit-linear-gradient(center bottom, #000 0%, #FFF 100%); border: 1px solid #777; border-radius: 3px; -moz-border-radius:10px; -webkit-border-radius:3px; border: 1px solid #777;').values(); | ||
2892 | |||
2893 | // helpLinkStyleAttributes = panelButtonAttributes.addStyle('position:absolute; left:0%; top:-13px; width:15%; height:25px; color:#FFF; font-size:18px; text-align:center; background: #AAA; background: -moz-linear-gradient(center bottom, #000 0%, #FFF 100%); -webkit-linear-gradient(center bottom, #000 0%, #FFF 100%); border: 1px solid #777; border-radius: 3px; -moz-border-radius:10px; -webkit-border-radius:3px; border: 1px solid #777;').values(); | ||
2894 | |||
2895 | // publishButton = DOM.BUILDER.BUTTON(redButtonStyleAttributes, 'Publish'); | ||
2875 | 2896 | ||
2876 | 2897 | var dialog = 0; | |
2877 | 2898 | publishButton.onclick = function publishButtonOnClick() { | |
… | … | ||
2914 | 2914 | alert("Please give all the details, it will be used further"); | |
2915 | 2915 | } else { | |
2916 | 2916 | pageEditor.commandPublish(); | |
2917 | $('#targetoverlay').remove(); | ||
2918 | 2917 | pageEditor.showMessage("... Please wait, your blog is being posted"); | |
2918 | $('#targetoverlay').remove(); | ||
2919 | 2919 | } | |
2920 | 2920 | }; | |
2921 | 2921 | // End of okButton function | |
2922 | 2922 | ||
2923 | undoButton = DOM.BUILDER.BUTTON(undoButtonStyleAttributes, 'Undo'); | ||
2923 | // undoButton = DOM.BUILDER.BUTTON(undoButtonStyleAttributes, 'Undo'); | ||
2924 | 2924 | undoButton.onclick = function undoButtonOnClick() { | |
2925 | 2925 | pageEditor.commandUndo(); | |
2926 | 2926 | return false; | |
2927 | 2927 | }; | |
2928 | 2928 | ||
2929 | helpLink = DOM.BUILDER.BUTTON(helpLinkStyleAttributes, 'Help'); | ||
2929 | // helpLink = DOM.BUILDER.BUTTON(helpLinkStyleAttributes, 'Help'); | ||
2930 | 2930 | helpLink.onclick = function helpLinkOnClick() { | |
2931 | 2931 | helpWindow = new HelpWindow(pageEditor); | |
2932 | 2932 | helpWindow.createLabels(); | |
… | … | ||
2937 | 2937 | ||
2938 | 2938 | editModeChangeButtonDiv = DOM.BUILDER.DIV(editAttributes.addStyle('width: 500px; position: relative; float: right; margin-right: 8px;').values(), editModeChangeSaveButton, editModeChangeDiscardButton); | |
2939 | 2939 | ||
2940 | buttonDiv = DOM.BUILDER.DIV(editAttributes.addStyle('width: 500px; position: relative; float: right; margin-right: 8px;').values(), undoButton, publishButton, helpLink); | ||
2940 | buttonDiv = DOM.BUILDER.DIV(editAttributes.addStyle('width: 500px; position: relative; float: right; margin-right: 8px;').values(), helpLink, undoButton, publishButton); | ||
2941 | 2941 | ||
2942 | 2942 | firstRowDiv = DOM.BUILDER.DIV(DOM.BUILDER.DIV(editAttributes.addStyle('width:500px; position: absolute; top: 0; left: 1%;').values(), messageDiv), buttonDiv); | |
2943 | 2943 | ||
… | … | ||
3179 | 3179 | break; | |
3180 | 3180 | ||
3181 | 3181 | case 'AUDIO_CREATE': | |
3182 | brk = document.createElement("br"); | ||
3183 | 3182 | audioElement = document.createElement('audio'); | |
3184 | 3183 | audioElement.setAttribute("id", "audiotag"); | |
3185 | 3184 | audioElement.setAttribute('src',command.data); | |
3186 | 3185 | audioElement.setAttribute('controls','controls'); | |
3187 | $(brk).insertBefore("#alipiSelectedElement"); | ||
3188 | $(audioElement).insertBefore($(brk)); | ||
3186 | audioElement.setAttribute('style', 'display:table;'); | ||
3187 | $(audioElement).insertBefore($(selectedElement)); | ||
3189 | 3188 | pageEditor.showMessage('Audio added'); | |
3190 | 3189 | break; | |
3191 | 3190 | ||
… | … | ||
3257 | 3257 | if(document.getElementById('our-check').checked) | |
3258 | 3258 | { | |
3259 | 3259 | localStorage.myContent = buildDataString(); | |
3260 | window.location.href = "http://dev.a11y.in/test.html"; | ||
3260 | window.location.href = "http://localhost/test.html"; | ||
3261 | 3261 | window.reload(); | |
3262 | 3262 | } | |
3263 | 3263 | else{ | |
3264 | 3264 | ||
3265 | AJAX.post('http://dev.a11y.in/test', buildDataString(), function(result) { | ||
3265 | AJAX.post('http://localhost/test', buildDataString(), function(result) { | ||
3266 | 3266 | ajaxResultProcessor.processPublishedResponse(result); | |
3267 | 3267 | }); | |
3268 | 3268 | } |