sbdevcore 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/app/assets/javascripts/sbdevcore-tools.js +4 -3
- data/app/assets/javascripts/sbdevcore.js +1 -0
- data/app/assets/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -1
- data/app/assets/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js +1 -1
- data/app/assets/javascripts/tiny_mce_config.js +15 -0
- data/app/assets/stylesheets/_bar_nav.scss +8 -11
- data/app/assets/stylesheets/_buttons.scss +51 -0
- data/app/assets/stylesheets/{_scrollable.scss → _gallery.scss} +0 -0
- data/app/assets/stylesheets/_js_errors.scss +26 -0
- data/app/assets/stylesheets/_mixins.scss +8 -7
- data/app/assets/stylesheets/_overlay.scss +35 -0
- data/app/assets/stylesheets/_sbdev_core.scss +193 -0
- data/app/assets/stylesheets/_tab_nav.scss +4 -9
- data/app/assets/stylesheets/_testimonials.scss +10 -0
- data/app/assets/stylesheets/_tooltips.scss +31 -0
- data/app/assets/stylesheets/_trip_advisor.scss +13 -0
- data/app/controllers/galleries_controller.rb +0 -1
- data/app/controllers/indices_controller.rb +0 -1
- data/app/controllers/texts_controller.rb +0 -1
- data/{lib/generators/sbdevcore/templates → app/views}/layouts/application.html.haml +2 -3
- data/app/views/layouts/bar_nav.html.haml +15 -0
- data/{lib/generators/sbdevcore/templates → app/views}/layouts/tab_nav.html.haml +3 -3
- data/lib/generators/sbdevcore/install_generator.rb +8 -1
- data/lib/generators/sbdevcore/templates/.gitignore +7 -0
- data/lib/generators/sbdevcore/templates/application.scss +0 -1
- data/lib/generators/sbdevcore/templates/application/_footer.html.haml +6 -0
- data/lib/generators/sbdevcore/templates/application/_nav.html.haml +4 -0
- data/lib/generators/sbdevcore/templates/config/app_config.yml +2 -0
- data/lib/generators/sbdevcore/templates/git_config +9 -0
- data/lib/generators/sbdevcore/templates/sass.scss +12 -0
- data/lib/sbdevcore/engine.rb +0 -1
- data/lib/sbdevcore/version.rb +1 -1
- metadata +17 -55
- data/app/assets/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/example/img/example.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/media/img/trans.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
- data/app/assets/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
- data/app/assets/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
- data/app/assets/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/app/assets/stylesheets/_core.scss +0 -393
- data/app/views/application/_404.html.erb +0 -2
- data/app/views/application/_admin_nav.html.erb +0 -9
- data/app/views/application/_footer.html.erb +0 -9
- data/app/views/application/_inline_nav.html.erb +0 -7
- data/app/views/application/_side_nav.html.erb +0 -9
- data/app/views/application/_side_section.html.erb +0 -4
- data/app/views/application/_top_nav.html.erb +0 -7
- data/app/views/application/_trip_advisor.html +0 -11
- data/lib/generators/sbdevcore/templates/application/_admin_nav.html.erb +0 -9
- data/lib/generators/sbdevcore/templates/application/_side_nav.html.erb +0 -9
- data/lib/generators/sbdevcore/templates/application/_side_section.html.erb +0 -4
- data/lib/generators/sbdevcore/templates/application/_top_nav.html.erb +0 -7
- data/lib/generators/sbdevcore/templates/layouts/bar_nav.html.haml +0 -15
data/.gitignore
CHANGED
@@ -100,10 +100,10 @@ function add_nested(link, association, content, hide) {
|
|
100
100
|
}
|
101
101
|
|
102
102
|
function set_currents(){
|
103
|
-
$('
|
104
|
-
$('
|
103
|
+
$('#nav [href="'+window.location.pathname.match(/\/\w*/i)+'"]').addClass("current");
|
104
|
+
$('#nav [href="'+window.location.pathname+'"]').addClass("current");
|
105
105
|
if(window.location.pathname === '/') {
|
106
|
-
$('#
|
106
|
+
$('#nav [href="/home"]').addClass("current");
|
107
107
|
}
|
108
108
|
}
|
109
109
|
|
@@ -170,6 +170,7 @@ $(document).ready(function (){
|
|
170
170
|
set_currents();
|
171
171
|
setOverlay();
|
172
172
|
setTooltip();
|
173
|
+
init_tinymce()
|
173
174
|
$('.accordion').tabs(".accordion div.pane", {tabs: 'h4', effect: 'fade'})
|
174
175
|
$(".items").tabs("#gallery_wrap div", {effect: 'myAjax', history: true, rotate: true}).slideshow({clickable: false, history: true});
|
175
176
|
$("#course_nav").tabs("#ajax_content", {effect: 'myAjax', history: true, initialIndex: null});
|
@@ -1 +1 @@
|
|
1
|
-
(function(){var a=tinymce.util.JSONRequest,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.SpellcheckerPlugin",{getInfo:function(){return{longname:"Spellchecker",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker",version:tinymce.majorVersion+"."+tinymce.minorVersion}},init:function(e,f){var g=this,d;g.url=f;g.editor=e;g.rpcUrl=e.getParam("spellchecker_rpc_url","{backend}");if(g.rpcUrl=="{backend}"){if(tinymce.isIE){return}g.hasSupport=true;e.onContextMenu.addToTop(function(h,i){if(g.active){return false}})}e.addCommand("mceSpellCheck",function(){if(g.rpcUrl=="{backend}"){g.editor.getBody().spellcheck=g.active=!g.active;return}if(!g.active){e.setProgressState(1);g._sendRPC("checkWords",[g.selectedLang,g._getWords()],function(h){if(h.length>0){g.active=1;g._markWords(h);e.setProgressState(0);e.nodeChanged()}else{e.setProgressState(0);if(e.getParam("spellchecker_report_no_misspellings",true)){e.windowManager.alert("spellchecker.no_mpell")}}})}else{g._done()}});e.onInit.add(function(){if(e.settings.content_css!==false){e.dom.loadCSS(f+"/css/content.css")}});e.onClick.add(g._showMenu,g);e.onContextMenu.add(g._showMenu,g);e.onBeforeGetContent.add(function(){if(g.active){g._removeWords()}});e.onNodeChange.add(function(i,h){h.setActive("spellchecker",g.active)});e.onSetContent.add(function(){g._done()});e.onBeforeGetContent.add(function(){g._done()});e.onBeforeExecCommand.add(function(h,i){if(i=="mceFullScreen"){g._done()}});g.languages={};c(e.getParam("spellchecker_languages","+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv","hash"),function(i,h){if(h.indexOf("+")===0){h=h.substring(1);g.selectedLang=i}g.languages[h]=i})},createControl:function(h,d){var f=this,g,e=f.editor;if(h=="spellchecker"){if(f.rpcUrl=="{backend}"){if(f.hasSupport){g=d.createButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f})}return g}g=d.createSplitButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f});g.onRenderMenu.add(function(j,i){i.add({title:"spellchecker.langs","class":"mceMenuItemTitle"}).setDisabled(1);c(f.languages,function(n,m){var p={icon:1},l;p.onclick=function(){l.setSelected(1);f.selectedItem.setSelected(0);f.selectedItem=l;f.selectedLang=n};p.title=m;l=i.add(p);l.setSelected(n==f.selectedLang);if(n==f.selectedLang){f.selectedItem=l}})});return g}},_walk:function(i,g){var h=this.editor.getDoc(),e;if(h.createTreeWalker){e=h.createTreeWalker(i,NodeFilter.SHOW_TEXT,null,false);while((i=e.nextNode())!=null){g.call(this,i)}}else{tinymce.walk(i,g,"childNodes")}},_getSeparators:function(){var e="",d,f=this.editor.getParam("spellchecker_word_separator_chars",'\\s!"#$%&()*+,-./:;<=>?@[]^_{|}����������������\u201d\u201c');for(d=0;d<f.length;d++){e+="\\"+f.charAt(d)}return e},_getWords:function(){var e=this.editor,g=[],d="",f={},h=[];this._walk(e.getBody(),function(i){if(i.nodeType==3){d+=i.nodeValue+" "}});if(e.getParam("spellchecker_word_pattern")){h=d.match("("+e.getParam("spellchecker_word_pattern")+")","gi")}else{d=d.replace(new RegExp("([0-9]|["+this._getSeparators()+"])","g")," ");d=tinymce.trim(d.replace(/(\s+)/g," "));h=d.split(" ")}c(h,function(i){if(!f[i]){g.push(i);f[i]=1}});return g},_removeWords:function(e){var f=this.editor,h=f.dom,g=f.selection,d=g.getBookmark();c(h.select("span").reverse(),function(i){if(i&&(h.hasClass(i,"mceItemHiddenSpellWord")||h.hasClass(i,"mceItemHidden"))){if(!e||h.decode(i.innerHTML)==e){h.remove(i,1)}}});g.moveToBookmark(d)},_markWords:function(o){var i,h,g,f,e,n="",k=this.editor,p=this._getSeparators(),j=k.dom,d=[];var l=k.selection,m=l.getBookmark();c(o,function(q){n+=(n?"|":"")+q});i=new RegExp("(["+p+"])("+n+")(["+p+"])","g");h=new RegExp("^("+n+")","g");g=new RegExp("("+n+")(["+p+"]?)$","g");f=new RegExp("^("+n+")(["+p+"]?)$","g");e=new RegExp("("+n+")(["+p+"])","g");this._walk(this.editor.getBody(),function(q){if(q.nodeType==3){d.push(q)}});c(d,function(r){var q;if(r.nodeType==3){q=r.nodeValue;if(i.test(q)||h.test(q)||g.test(q)||f.test(q)){q=j.encode(q);q=q.replace(e,'<span class="mceItemHiddenSpellWord">$1</span>$2');q=q.replace(g,'<span class="mceItemHiddenSpellWord">$1</span>$2');j.replace(j.create("span",{"class":"mceItemHidden"},q),r)}}});l.moveToBookmark(m)},_showMenu:function(g,i){var h=this,g=h.editor,d=h._menu,k,j=g.dom,f=j.getViewPort(g.getWin());if(!d){k=b.getPos(g.getContentAreaContainer());d=g.controlManager.createDropMenu("spellcheckermenu",{offset_x:k.x,offset_y:k.y,"class":"mceNoIcons"});h._menu=d}if(j.hasClass(i.target,"mceItemHiddenSpellWord")){d.removeAll();d.add({title:"spellchecker.wait","class":"mceMenuItemTitle"}).setDisabled(1);h._sendRPC("getSuggestions",[h.selectedLang,j.decode(i.target.innerHTML)],function(l){var e;d.removeAll();if(l.length>0){d.add({title:"spellchecker.sug","class":"mceMenuItemTitle"}).setDisabled(1);c(l,function(m){d.add({title:m,onclick:function(){j.replace(g.getDoc().createTextNode(m),i.target);h._checkDone()}})});d.addSeparator()}else{d.add({title:"spellchecker.no_sug","class":"mceMenuItemTitle"}).setDisabled(1)}e=h.editor.getParam("spellchecker_enable_ignore_rpc","");d.add({title:"spellchecker.ignore_word",onclick:function(){var m=i.target.innerHTML;j.remove(i.target,1);h._checkDone();if(e){g.setProgressState(1);h._sendRPC("ignoreWord",[h.selectedLang,m],function(n){g.setProgressState(0)})}}});d.add({title:"spellchecker.ignore_words",onclick:function(){var m=i.target.innerHTML;h._removeWords(j.decode(m));h._checkDone();if(e){g.setProgressState(1);h._sendRPC("ignoreWords",[h.selectedLang,m],function(n){g.setProgressState(0)})}}});if(h.editor.getParam("spellchecker_enable_learn_rpc")){d.add({title:"spellchecker.learn_word",onclick:function(){var m=i.target.innerHTML;j.remove(i.target,1);h._checkDone();g.setProgressState(1);h._sendRPC("learnWord",[h.selectedLang,m],function(n){g.setProgressState(0)})}})}d.update()});g.selection.select(i.target);k=j.getPos(i.target);d.showMenu(k.x,k.y+i.target.offsetHeight-f.y);return tinymce.dom.Event.cancel(i)}else{d.hideMenu()}},_checkDone:function(){var e=this,d=e.editor,g=d.dom,f;c(g.select("span"),function(h){if(h&&g.hasClass(h,"mceItemHiddenSpellWord")){f=true;return false}});if(!f){e._done()}},_done:function(){var d=this,e=d.active;if(d.active){d.active=0;d._removeWords();if(d._menu){d._menu.hideMenu()}if(e){d.editor.nodeChanged()}}},_sendRPC:function(e,g,d){var f=this;a.sendRPC({url:f.rpcUrl,method:e,params:g,success:d,error:function(i,h){f.editor.setProgressState(0);f.editor.windowManager.alert(i.errstr||("Error response: "+h.responseText))}})}});tinymce.PluginManager.add("spellchecker",tinymce.plugins.SpellcheckerPlugin)})();
|
1
|
+
(function(){var a=tinymce.util.JSONRequest,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.SpellcheckerPlugin",{getInfo:function(){return{longname:"Spellchecker",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker",version:tinymce.majorVersion+"."+tinymce.minorVersion}},init:function(e,f){var g=this,d;g.url=f;g.editor=e;g.rpcUrl=e.getParam("spellchecker_rpc_url","{backend}");if(g.rpcUrl=="{backend}"){if(tinymce.isIE){return}g.hasSupport=true;e.onContextMenu.addToTop(function(h,i){if(g.active){return false}})}e.addCommand("mceSpellCheck",function(){if(g.rpcUrl=="{backend}"){g.editor.getBody().spellcheck=g.active=!g.active;return}if(!g.active){e.setProgressState(1);g._sendRPC("checkWords",[g.selectedLang,g._getWords()],function(h){if(h.length>0){g.active=1;g._markWords(h);e.setProgressState(0);e.nodeChanged()}else{e.setProgressState(0);if(e.getParam("spellchecker_report_no_misspellings",true)){e.windowManager.alert("spellchecker.no_mpell")}}})}else{g._done()}});e.onInit.add(function(){if(e.settings.content_css!==false){e.dom.loadCSS(f+"/css/content.css")}});e.onClick.add(g._showMenu,g);e.onContextMenu.add(g._showMenu,g);e.onBeforeGetContent.add(function(){if(g.active){g._removeWords()}});e.onNodeChange.add(function(i,h){h.setActive("spellchecker",g.active)});e.onSetContent.add(function(){g._done()});e.onBeforeGetContent.add(function(){g._done()});e.onBeforeExecCommand.add(function(h,i){if(i=="mceFullScreen"){g._done()}});g.languages={};c(e.getParam("spellchecker_languages","+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv","hash"),function(i,h){if(h.indexOf("+")===0){h=h.substring(1);g.selectedLang=i}g.languages[h]=i})},createControl:function(h,d){var f=this,g,e=f.editor;if(h=="spellchecker"){if(f.rpcUrl=="{backend}"){if(f.hasSupport){g=d.createButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f})}return g}g=d.createSplitButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f});g.onRenderMenu.add(function(j,i){i.add({title:"spellchecker.langs","class":"mceMenuItemTitle"}).setDisabled(1);c(f.languages,function(n,m){var p={icon:1},l;p.onclick=function(){l.setSelected(1);f.selectedItem.setSelected(0);f.selectedItem=l;f.selectedLang=n};p.title=m;l=i.add(p);l.setSelected(n==f.selectedLang);if(n==f.selectedLang){f.selectedItem=l}})});return g}},_walk:function(i,g){var h=this.editor.getDoc(),e;if(h.createTreeWalker){e=h.createTreeWalker(i,NodeFilter.SHOW_TEXT,null,false);while((i=e.nextNode())!=null){g.call(this,i)}}else{tinymce.walk(i,g,"childNodes")}},_getSeparators:function(){var e="",d,f=this.editor.getParam("spellchecker_word_separator_chars",'\\s!"#$%&()*+,-./:;<=>?@[]^_{|}����������������\u201d\u201c');for(d=0;d<f.length;d++){e+="\\"+f.charAt(d)}return e},_getWords:function(){var e=this.editor,g=[],d="",f={},h=[];this._walk(e.getBody(),function(i){if(i.nodeType==3){d+=i.nodeValue+" "}});if(e.getParam("spellchecker_word_pattern")){h=d.match("("+e.getParam("spellchecker_word_pattern")+")","gi")}else{d=d.replace(new RegExp("([0-9]|["+this._getSeparators()+"])","g")," ");d=tinymce.trim(d.replace(/(\s+)/g," "));h=d.split(" ")}c(h,function(i){if(!f[i]){g.push(i);f[i]=1}});return g},_removeWords:function(e){var f=this.editor,h=f.dom,g=f.selection,d=g.getBookmark();c(h.select("span").reverse(),function(i){if(i&&(h.hasClass(i,"mceItemHiddenSpellWord")||h.hasClass(i,"mceItemHidden"))){if(!e||h.decode(i.innerHTML)==e){h.remove(i,1)}}});g.moveToBookmark(d)},_markWords:function(o){var i,h,g,f,e,n="",k=this.editor,p=this._getSeparators(),j=k.dom,d=[];var l=k.selection,m=l.getBookmark();c(o,function(q){n+=(n?"|":"")+q});i=new RegExp("(["+p+"])("+n+")(["+p+"])","g");h=new RegExp("^("+n+")","g");g=new RegExp("("+n+")(["+p+"]?)$","g");f=new RegExp("^("+n+")(["+p+"]?)$","g");e=new RegExp("("+n+")(["+p+"])","g");this._walk(this.editor.getBody(),function(q){if(q.nodeType==3){d.push(q)}});c(d,function(r){var q;if(r.nodeType==3){q=r.nodeValue;if(i.test(q)||h.test(q)||g.test(q)||f.test(q)){q=j.encode(q);q=q.replace(e,'<span class="mceItemHiddenSpellWord">$1</span>$2');q=q.replace(g,'<span class="mceItemHiddenSpellWord">$1</span>$2');j.replace(j.create("span",{"class":"mceItemHidden"},q),r)}}});l.moveToBookmark(m)},_showMenu:function(g,i){var h=this,g=h.editor,d=h._menu,k,j=g.dom,f=j.getViewPort(g.getWin());if(!d){k=b.getPos(g.getContentAreaContainer());d=g.controlManager.createDropMenu("spellcheckermenu",{offset_x:k.x,offset_y:k.y,"class":"mceNoIcons"});h._menu=d}if(j.hasClass(i.target,"mceItemHiddenSpellWord")){d.removeAll();d.add({title:"spellchecker.wait","class":"mceMenuItemTitle"}).setDisabled(1);h._sendRPC("getSuggestions",[h.selectedLang,j.decode(i.target.innerHTML)],function(l){var e;d.removeAll();if(l.length>0){d.add({title:"spellchecker.sug","class":"mceMenuItemTitle"}).setDisabled(1);c(l,function(m){d.add({title:m,onclick:function(){j.replace(g.getDoc().createTextNode(m),i.target);h._checkDone()}})});d.addSeparator()}else{d.add({title:"spellchecker.no_sug","class":"mceMenuItemTitle"}).setDisabled(1)}e=h.editor.getParam("spellchecker_enable_ignore_rpc","");d.add({title:"spellchecker.ignore_word",onclick:function(){var m=i.target.innerHTML;j.remove(i.target,1);h._checkDone();if(e){g.setProgressState(1);h._sendRPC("ignoreWord",[h.selectedLang,m],function(n){g.setProgressState(0)})}}});d.add({title:"spellchecker.ignore_words",onclick:function(){var m=i.target.innerHTML;h._removeWords(j.decode(m));h._checkDone();if(e){g.setProgressState(1);h._sendRPC("ignoreWords",[h.selectedLang,m],function(n){g.setProgressState(0)})}}});if(h.editor.getParam("spellchecker_enable_learn_rpc")){d.add({title:"spellchecker.learn_word",onclick:function(){var m=i.target.innerHTML;j.remove(i.target,1);h._checkDone();g.setProgressState(1);h._sendRPC("learnWord",[h.selectedLang,m],function(n){g.setProgressState(0)})}})}d.update()});g.selection.select(i.target);k=j.getPos(i.target);d.showMenu(k.x,k.y+i.target.offsetHeight-f.y);return tinymce.dom.Event.cancel(i)}else{d.hideMenu()}},_checkDone:function(){var e=this,d=e.editor,g=d.dom,f;c(g.select("span"),function(h){if(h&&g.hasClass(h,"mceItemHiddenSpellWord")){f=true;return false}});if(!f){e._done()}},_done:function(){var d=this,e=d.active;if(d.active){d.active=0;d._removeWords();if(d._menu){d._menu.hideMenu()}if(e){d.editor.nodeChanged()}}},_sendRPC:function(e,g,d){var f=this;a.sendRPC({url:f.rpcUrl,method:e,params:g,success:d,error:function(i,h){f.editor.setProgressState(0);f.editor.windowManager.alert(i.errstr||("Error response: "+h.responseText))}})}});tinymce.PluginManager.add("spellchecker",tinymce.plugins.SpellcheckerPlugin)})();
|
@@ -1 +1 @@
|
|
1
|
-
(function(){tinymce.create("tinymce.plugins.WordCount",{block:0,id:null,countre:null,cleanre:null,init:function(a,b){var c=this,d=0;c.countre=a.getParam("wordcount_countregex",/\S\s+/g);c.cleanre=a.getParam("wordcount_cleanregex",/[0-9.(),;:!?%#$�'"_+=\\/-]*/g);c.id=a.id+"-word-count";a.onPostRender.add(function(f,e){var g,h;h=f.getParam("wordcount_target_id");if(!h){g=tinymce.DOM.get(f.id+"_path_row");if(g){tinymce.DOM.add(g.parentNode,"div",{style:"float: right"},f.getLang("wordcount.words","Words: ")+'<span id="'+c.id+'">0</span>')}}else{tinymce.DOM.add(h,"span",{},'<span id="'+c.id+'">0</span>')}});a.onInit.add(function(e){e.selection.onSetContent.add(function(){c._count(e)});c._count(e)});a.onSetContent.add(function(e){c._count(e)});a.onKeyUp.add(function(f,g){if(g.keyCode==d){return}if(13==g.keyCode||8==d||46==d){c._count(f)}d=g.keyCode})},_count:function(b){var c=this,a=0;if(c.block){return}c.block=1;setTimeout(function(){var d=b.getContent({format:"raw"});if(d){d=d.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ");d=d.replace(c.cleanre,"");d.replace(c.countre,function(){a++})}tinymce.DOM.setHTML(c.id,a.toString());setTimeout(function(){c.block=0},2000)},1)},getInfo:function(){return{longname:"Word Count plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("wordcount",tinymce.plugins.WordCount)})();
|
1
|
+
(function(){tinymce.create("tinymce.plugins.WordCount",{block:0,id:null,countre:null,cleanre:null,init:function(a,b){var c=this,d=0;c.countre=a.getParam("wordcount_countregex",/\S\s+/g);c.cleanre=a.getParam("wordcount_cleanregex",/[0-9.(),;:!?%#$�'"_+=\\/-]*/g);c.id=a.id+"-word-count";a.onPostRender.add(function(f,e){var g,h;h=f.getParam("wordcount_target_id");if(!h){g=tinymce.DOM.get(f.id+"_path_row");if(g){tinymce.DOM.add(g.parentNode,"div",{style:"float: right"},f.getLang("wordcount.words","Words: ")+'<span id="'+c.id+'">0</span>')}}else{tinymce.DOM.add(h,"span",{},'<span id="'+c.id+'">0</span>')}});a.onInit.add(function(e){e.selection.onSetContent.add(function(){c._count(e)});c._count(e)});a.onSetContent.add(function(e){c._count(e)});a.onKeyUp.add(function(f,g){if(g.keyCode==d){return}if(13==g.keyCode||8==d||46==d){c._count(f)}d=g.keyCode})},_count:function(b){var c=this,a=0;if(c.block){return}c.block=1;setTimeout(function(){var d=b.getContent({format:"raw"});if(d){d=d.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ");d=d.replace(c.cleanre,"");d.replace(c.countre,function(){a++})}tinymce.DOM.setHTML(c.id,a.toString());setTimeout(function(){c.block=0},2000)},1)},getInfo:function(){return{longname:"Word Count plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("wordcount",tinymce.plugins.WordCount)})();
|
@@ -0,0 +1,15 @@
|
|
1
|
+
function init_tinymce() {
|
2
|
+
tinyMCE.init({
|
3
|
+
// General options
|
4
|
+
mode : "none",
|
5
|
+
theme : "advanced",
|
6
|
+
plugins : "autoresize",
|
7
|
+
|
8
|
+
// Theme options
|
9
|
+
theme_advanced_buttons1 : "bold, italic, underline, |, justifyleft, justifycenter, justifyright, justifyfull, |, bullist, numlist, |, outdent, indent, |, formatselect, fontsizeselect, fontselect, |, link, unlink, |, code, removeformat;",
|
10
|
+
theme_advanced_buttons2 : "",
|
11
|
+
theme_advanced_buttons3 : "",
|
12
|
+
theme_advanced_fonts : 'Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats;',
|
13
|
+
theme_advanced_blockformats : "h1, h2, h3, h4, p, blockquote"
|
14
|
+
});
|
15
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
#nav {
|
2
2
|
width: $content-width;
|
3
3
|
padding: 10px;
|
4
4
|
background-color: $button-background-color;
|
@@ -19,18 +19,15 @@
|
|
19
19
|
#main_container {
|
20
20
|
@include box-shadow($shadow-radius);
|
21
21
|
@include corners-bottom($corner-radius);
|
22
|
+
background-color: $content-background-color;
|
22
23
|
margin-top: 0px;
|
23
24
|
.content {
|
24
|
-
@include
|
25
|
+
@include box-shadow(0);
|
26
|
+
@include corners-all(0);
|
27
|
+
background-color: transparent;
|
25
28
|
}
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
background-color: $content-background-color;
|
30
|
-
padding: $padding ;
|
31
|
-
width: $content-width;
|
32
|
-
h1 {
|
33
|
-
margin: 0;
|
34
|
-
text-align: center;
|
29
|
+
#nav {
|
30
|
+
@include corners-all(0);
|
31
|
+
@include box-shadow(0);
|
35
32
|
}
|
36
33
|
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/*Buttons*/
|
2
|
+
.nav .button {
|
3
|
+
width: 210px;
|
4
|
+
padding: 5px 0 !important;
|
5
|
+
}
|
6
|
+
|
7
|
+
img.button {
|
8
|
+
border: none;
|
9
|
+
}
|
10
|
+
|
11
|
+
.button {
|
12
|
+
background-color: $button-background-color;
|
13
|
+
cursor: pointer;
|
14
|
+
border: none;
|
15
|
+
display: inline-block;
|
16
|
+
padding: 5px;
|
17
|
+
margin: 5px;
|
18
|
+
text-align: center;
|
19
|
+
text-decoration: none;
|
20
|
+
color: $content-background-color;
|
21
|
+
font-size: 1.2em;
|
22
|
+
@include box-shadow($shadow-radius);
|
23
|
+
@include corners-all($corner-radius);
|
24
|
+
}
|
25
|
+
|
26
|
+
.button:hover, .current {
|
27
|
+
background-color: $content-background-color;
|
28
|
+
color: black !important;
|
29
|
+
}
|
30
|
+
|
31
|
+
.pagination .button{
|
32
|
+
width: auto;
|
33
|
+
padding: 5px;
|
34
|
+
}
|
35
|
+
.button em {
|
36
|
+
border-style:solid;
|
37
|
+
border-color:transparent transparent transparent $content-background-color;
|
38
|
+
border-width:9px;
|
39
|
+
display:inline-block;
|
40
|
+
bottom:-38px;
|
41
|
+
position: relative;
|
42
|
+
left: 10px;
|
43
|
+
top: 2px;
|
44
|
+
height:0;
|
45
|
+
width:0;
|
46
|
+
}
|
47
|
+
|
48
|
+
.button:hover em,.current em {
|
49
|
+
border-color: black transparent transparent transparent;
|
50
|
+
top: 8px;
|
51
|
+
}
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
.error em {
|
2
|
+
border:16px solid;
|
3
|
+
border-color:yellow transparent transparent;
|
4
|
+
bottom:-32px;
|
5
|
+
display:block;
|
6
|
+
height:0;
|
7
|
+
left:130px;
|
8
|
+
position:absolute;
|
9
|
+
width:0;
|
10
|
+
}
|
11
|
+
|
12
|
+
/* error message */
|
13
|
+
.error {
|
14
|
+
height:15px;
|
15
|
+
background-color:yellow;
|
16
|
+
padding:5px 10px;
|
17
|
+
display:none;
|
18
|
+
font-size: 14px;
|
19
|
+
z-index: 10001;
|
20
|
+
@include corners-all($corner-radius);
|
21
|
+
@include box-shadow(6px);
|
22
|
+
}
|
23
|
+
|
24
|
+
.error p {
|
25
|
+
margin:0;
|
26
|
+
}
|
@@ -13,13 +13,7 @@
|
|
13
13
|
margin: $radius;
|
14
14
|
-moz-box-shadow: 0 0 $radius black;
|
15
15
|
-webkit-box-shadow: 0 0 $radius black;
|
16
|
-
|
17
|
-
}
|
18
|
-
|
19
|
-
@mixin box-shadow-sides($radius){
|
20
|
-
margin: $radius;
|
21
|
-
// -moz-box-shadow: 0 $shadow-radius*1.5 0 $content-background-color, 0 0 $shadow-radius black, 0 (-$shadow-radius*1.5) 0 $content-background-color, 0 0 $shadow-radius black;
|
22
|
-
// -webkit-box-shadow: 0 0 $radius black;
|
16
|
+
-box-shadow: 0 0 $radius black;
|
23
17
|
behavior: url(/stylesheets/PIE.htc);
|
24
18
|
}
|
25
19
|
|
@@ -71,4 +65,11 @@
|
|
71
65
|
-webkit-border-top-right-radius: 0 !important;
|
72
66
|
border-top-right-radius: 0 !important;
|
73
67
|
behavior: url(/stylesheets/PIE.htc);
|
68
|
+
}
|
69
|
+
|
70
|
+
@mixin corners-top-left($radius) {
|
71
|
+
-moz-border-radius-topleft: $radius !important;
|
72
|
+
-webkit-border-top-left-radius: $radius !important;
|
73
|
+
border-top-left-radius: $radius !important;
|
74
|
+
behavior: url(/stylesheets/PIE.htc);
|
74
75
|
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
.overlay {
|
2
|
+
|
3
|
+
/* must be initially hidden */
|
4
|
+
display:none;
|
5
|
+
|
6
|
+
/* place overlay on top of other elements */
|
7
|
+
z-index:10000;
|
8
|
+
|
9
|
+
/* styling */
|
10
|
+
background-color: $content-background-color;
|
11
|
+
|
12
|
+
width:840px;
|
13
|
+
padding: 20px;
|
14
|
+
min-height:200px;
|
15
|
+
top: 0 !important;
|
16
|
+
/*overflow-y: auto; */
|
17
|
+
/* CSS3 styling for latest browsers */
|
18
|
+
@include box-shadow(90px);
|
19
|
+
}
|
20
|
+
|
21
|
+
/* close button positioned on upper right corner */
|
22
|
+
.overlay .close {
|
23
|
+
background:url(/assets/close.png);
|
24
|
+
position:absolute;
|
25
|
+
right:-15px;
|
26
|
+
top:-15px;
|
27
|
+
cursor:pointer;
|
28
|
+
height:35px;
|
29
|
+
width:35px;
|
30
|
+
}
|
31
|
+
|
32
|
+
.overlay img {
|
33
|
+
max-width: 800px;
|
34
|
+
max-height: 600px;
|
35
|
+
}
|
@@ -0,0 +1,193 @@
|
|
1
|
+
@import 'mixins';
|
2
|
+
@import 'gallery';
|
3
|
+
@import 'buttons';
|
4
|
+
@import 'tooltips';
|
5
|
+
@import 'js_errors';
|
6
|
+
@import 'trip_advisor';
|
7
|
+
@import 'overlay';
|
8
|
+
@import 'testimonials';
|
9
|
+
|
10
|
+
/*layout*/
|
11
|
+
body {
|
12
|
+
font-family: "Lucida Grande","Lucida Sans Unicode","bitstream vera sans","trebuchet ms",verdana,sans-serif;
|
13
|
+
background: url("/assets/background.jpg") repeat fixed center top $background-color;
|
14
|
+
font-size: 16px;
|
15
|
+
padding: 0;
|
16
|
+
margin: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
#container {
|
20
|
+
width: $window-width;
|
21
|
+
margin: 0 auto;
|
22
|
+
overflow: hidden;
|
23
|
+
}
|
24
|
+
|
25
|
+
#header {
|
26
|
+
background-color: transparent;
|
27
|
+
padding: $padding;
|
28
|
+
width: $content-width;
|
29
|
+
h1 {
|
30
|
+
margin: 0;
|
31
|
+
text-align: center;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.content {
|
36
|
+
background-color: $content-background-color;
|
37
|
+
padding: $padding;
|
38
|
+
@include box-shadow($shadow-radius);
|
39
|
+
@include corners-all($corner-radius);
|
40
|
+
width: $content-width;
|
41
|
+
}
|
42
|
+
|
43
|
+
#footer {
|
44
|
+
font-size: 12px;
|
45
|
+
}
|
46
|
+
|
47
|
+
.inline_nav {
|
48
|
+
margin: 0 auto;
|
49
|
+
}
|
50
|
+
|
51
|
+
.inline_nav .button {
|
52
|
+
@include box-shadow($shadow-radius);
|
53
|
+
width: $content-width/2 - 2*$shadow-radius/1.5 - 2*$padding;
|
54
|
+
}
|
55
|
+
|
56
|
+
.inline_nav li, .inline_nav ul {
|
57
|
+
display: inline;
|
58
|
+
}
|
59
|
+
|
60
|
+
img {
|
61
|
+
max-width: $content-width - $padding*2 - 2*$shadow-radius/1.5;
|
62
|
+
display: inline-block;
|
63
|
+
}
|
64
|
+
|
65
|
+
img.left, img.right {
|
66
|
+
max-width: ($content-width - $padding*2 - 2*$shadow-radius/1.5)/2;
|
67
|
+
}
|
68
|
+
|
69
|
+
/*utilities*/
|
70
|
+
.right {
|
71
|
+
float: right;
|
72
|
+
}
|
73
|
+
|
74
|
+
.left {
|
75
|
+
float: left;
|
76
|
+
}
|
77
|
+
|
78
|
+
.center {
|
79
|
+
text-align: center;
|
80
|
+
}
|
81
|
+
|
82
|
+
img.center {
|
83
|
+
margin: 0 auto;
|
84
|
+
display: block;
|
85
|
+
}
|
86
|
+
|
87
|
+
.clearfix { overflow: hidden; }
|
88
|
+
|
89
|
+
a img {
|
90
|
+
border: none;
|
91
|
+
}
|
92
|
+
|
93
|
+
th {
|
94
|
+
min-width: 120px;
|
95
|
+
text-align: left;
|
96
|
+
}
|
97
|
+
|
98
|
+
select {
|
99
|
+
min-width: 200px;
|
100
|
+
}
|
101
|
+
|
102
|
+
ul, li {
|
103
|
+
list-style-type: none;
|
104
|
+
padding: 0;
|
105
|
+
margin: 0;
|
106
|
+
}
|
107
|
+
|
108
|
+
.circle {
|
109
|
+
background: $content-background-color;
|
110
|
+
border: 3px solid $button-background-color;
|
111
|
+
width: 230px;
|
112
|
+
height: 230px;
|
113
|
+
@include corners-all(50%);
|
114
|
+
@include box-shadow($shadow-radius);
|
115
|
+
}
|
116
|
+
|
117
|
+
.circle img {
|
118
|
+
border: none;
|
119
|
+
outline: none;
|
120
|
+
width: 224px;
|
121
|
+
height: 224px;
|
122
|
+
}
|
123
|
+
|
124
|
+
.no_back {
|
125
|
+
background:none !important;
|
126
|
+
border:none !important;
|
127
|
+
-moz-box-shadow: none;
|
128
|
+
-webkit-box-shadow: none;
|
129
|
+
}
|
130
|
+
|
131
|
+
/*Flash*/
|
132
|
+
#flash_notice, #flash_error {
|
133
|
+
padding: 5px 8px;
|
134
|
+
margin: 10px 0;
|
135
|
+
}
|
136
|
+
|
137
|
+
#flash_notice {
|
138
|
+
background-color: #CFC;
|
139
|
+
border: solid 1px #6C6;
|
140
|
+
}
|
141
|
+
|
142
|
+
#flash_error {
|
143
|
+
background-color: #FCC;
|
144
|
+
border: solid 1px #C66;
|
145
|
+
}
|
146
|
+
|
147
|
+
.fieldWithErrors {
|
148
|
+
display: inline;
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
.two-col {
|
153
|
+
width: 50%;
|
154
|
+
float: left;
|
155
|
+
}
|
156
|
+
|
157
|
+
table.mceLayout {
|
158
|
+
height: auto !important;
|
159
|
+
}
|
160
|
+
|
161
|
+
.asset-admin {
|
162
|
+
margin: 0;
|
163
|
+
text-align: center;
|
164
|
+
}
|
165
|
+
|
166
|
+
.highlight-section {
|
167
|
+
background-color: darken($background-color, 1);
|
168
|
+
}
|
169
|
+
|
170
|
+
.justify_right {
|
171
|
+
text-align: right;
|
172
|
+
}
|
173
|
+
|
174
|
+
.justify_center {
|
175
|
+
text-align: center;
|
176
|
+
}
|
177
|
+
|
178
|
+
td {
|
179
|
+
text-align: left;
|
180
|
+
}
|
181
|
+
|
182
|
+
.course_nav {
|
183
|
+
margin-top: 0 !important;
|
184
|
+
}
|
185
|
+
|
186
|
+
#blog .button {
|
187
|
+
padding: 5px 25px 5px 10px;
|
188
|
+
}
|
189
|
+
|
190
|
+
#blog .button em {
|
191
|
+
float: right;
|
192
|
+
}
|
193
|
+
|
@@ -1,12 +1,10 @@
|
|
1
|
-
#
|
1
|
+
#nav {
|
2
2
|
width: $content-width;
|
3
|
-
|
4
|
-
|
3
|
+
overflow: hidden;
|
4
|
+
margin-left: 5px !important;
|
5
5
|
.button {
|
6
|
-
margin-bottom: 0 !important;
|
7
|
-
-moz-box-shadow: 0 $shadow-radius*1.5 0 $content-background-color, 0 0 $shadow-radius black;
|
8
|
-
-webkit-box-shadow: 0 $shadow-radius 0 $content-background-color, 0 0 $shadow-radius black;
|
9
6
|
@include corners-top($corner-radius);
|
7
|
+
margin-bottom: 0 !important;
|
10
8
|
margin-right: 0 !important;
|
11
9
|
padding-left: 10px;
|
12
10
|
padding-right: 10px;
|
@@ -15,7 +13,4 @@
|
|
15
13
|
|
16
14
|
.content {
|
17
15
|
margin-top: 0 !important;
|
18
|
-
// -moz-border-radius-topleft: 0 !important;
|
19
|
-
// -webkit-border-top-left-radius: 0 !important;
|
20
|
-
// border-top-left-radius: 0 !important;
|
21
16
|
}
|