Commit c6b07d8aa336de7b6e376036b884a8cc26e359e7

  • avatar
  • Ajay <ajay @serv…ots.com>
  • Mon Jan 16 17:19:26 IST 2012
Changed button style & works good in chrome too
  
1212}
1313
1414#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;
1915 height:20px;
2016 margin-right:1px;
2117 text-align:center;
2218 width:50px;
2319 font-size:14px;
2420 font-weight:bold;
25 color:#fff;
2621 background-color:#2f6270;
2722 float:right;
2823}
4949}
5050
5151#menu-button {
52 color:#FFF;
53 background: #222;
54 border:3px solid;
55 border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px;
5652 text-align:center;
5753 font-size:14px;
5854 float:left;
5959}
6060
6161#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;
6662 text-align:center;
6763 margin-top:10px;
6864 margin-left:20px;
6666 height:30px;
6767 font-size:20px;
6868 font-weight:bold;
69 color:#fff;
7069}
  
17971797 source: function(req, add){
17981798
17991799 //pass request to server
1800 $.getJSON("http://dev.a11y.in/getData?", req, function(data) {
1800 $.getJSON("http://localhost/getData?", req, function(data) {
18011801
18021802 //create array for response objects
18031803 var suggestions = [];
18211821 source: function(req, add){
18221822
18231823 //pass request to server
1824 $.getJSON("http://dev.a11y.in/getLang?", req, function(data) {
1824 $.getJSON("http://localhost/getLang?", req, function(data) {
18251825
18261826 //create array for response objects
18271827 var suggestions = [];
21762176 }
21772177 }
21782178 }
2179 xmlhttp.open("POST","http://dev.a11y.in/narration",true);
2179 xmlhttp.open("POST","http://localhost/narration",true);
21802180 xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
21812181 xmlhttp.send(data);
21822182
28652865
28662866 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());
28672867
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;");
28692874
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;");
28712881
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;");
28732888
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');
28752896
28762897 var dialog = 0;
28772898 publishButton.onclick = function publishButtonOnClick() {
29142914 alert("Please give all the details, it will be used further");
29152915 } else {
29162916 pageEditor.commandPublish();
2917 $('#targetoverlay').remove();
29182917 pageEditor.showMessage("... Please wait, your blog is being posted");
2918 $('#targetoverlay').remove();
29192919 }
29202920 };
29212921 // End of okButton function
29222922
2923 undoButton = DOM.BUILDER.BUTTON(undoButtonStyleAttributes, 'Undo');
2923 // undoButton = DOM.BUILDER.BUTTON(undoButtonStyleAttributes, 'Undo');
29242924 undoButton.onclick = function undoButtonOnClick() {
29252925 pageEditor.commandUndo();
29262926 return false;
29272927 };
29282928
2929 helpLink = DOM.BUILDER.BUTTON(helpLinkStyleAttributes, 'Help');
2929 // helpLink = DOM.BUILDER.BUTTON(helpLinkStyleAttributes, 'Help');
29302930 helpLink.onclick = function helpLinkOnClick() {
29312931 helpWindow = new HelpWindow(pageEditor);
29322932 helpWindow.createLabels();
29372937
29382938 editModeChangeButtonDiv = DOM.BUILDER.DIV(editAttributes.addStyle('width: 500px; position: relative; float: right; margin-right: 8px;').values(), editModeChangeSaveButton, editModeChangeDiscardButton);
29392939
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);
29412941
29422942 firstRowDiv = DOM.BUILDER.DIV(DOM.BUILDER.DIV(editAttributes.addStyle('width:500px; position: absolute; top: 0; left: 1%;').values(), messageDiv), buttonDiv);
29432943
31793179 break;
31803180
31813181 case 'AUDIO_CREATE':
3182 brk = document.createElement("br");
31833182 audioElement = document.createElement('audio');
31843183 audioElement.setAttribute("id", "audiotag");
31853184 audioElement.setAttribute('src',command.data);
31863185 audioElement.setAttribute('controls','controls');
3187 $(brk).insertBefore("#alipiSelectedElement");
3188 $(audioElement).insertBefore($(brk));
3186 audioElement.setAttribute('style', 'display:table;');
3187 $(audioElement).insertBefore($(selectedElement));
31893188 pageEditor.showMessage('Audio added');
31903189 break;
31913190
32573257 if(document.getElementById('our-check').checked)
32583258 {
32593259 localStorage.myContent = buildDataString();
3260 window.location.href = "http://dev.a11y.in/test.html";
3260 window.location.href = "http://localhost/test.html";
32613261 window.reload();
32623262 }
32633263 else{
32643264
3265 AJAX.post('http://dev.a11y.in/test', buildDataString(), function(result) {
3265 AJAX.post('http://localhost/test', buildDataString(), function(result) {
32663266 ajaxResultProcessor.processPublishedResponse(result);
32673267 });
32683268 }