Started by user charlie.gracie@gmail.com Checkout:workspace / /home/hudson/genie.omr/.hudson/jobs/sync_omr_website_from_github_to_eclipse/workspace - hudson.remoting.LocalChannel@29b0878e Using strategy: Default Git Exe: git Last Built Revision: Revision 0e8b3220f2b1f32a84b487eca1f6eef185a28431 (origin/master) Checkout:git-repo / /home/hudson/genie.omr/.hudson/jobs/sync_omr_website_from_github_to_eclipse/workspace/git-repo - hudson.remoting.LocalChannel@29b0878e Fetching changes from the remote Git repository Fetching upstream changes from https://github.com/eclipse/omr.website.git Commencing build of Revision fd73004a58473a3de440126139692a5cd2acbe19 (origin/master) Checking out Revision fd73004a58473a3de440126139692a5cd2acbe19 (origin/master) Cleaning workspace [workspace] $ /bin/bash -l /tmp/hudson424579404915288244.sh Rev: fd73004a58473a3de440126139692a5cd2acbe19 Configuration file: /jobs/genie.omr/sync_omr_website_from_github_to_eclipse/workspace/git-repo/_config.yml Source: /jobs/genie.omr/sync_omr_website_from_github_to_eclipse/workspace/git-repo Destination: /jobs/genie.omr/sync_omr_website_from_github_to_eclipse/workspace/git-repo/_site Incremental build: disabled. Enable with --incremental Generating... done in 1.652 seconds. Auto-regeneration: disabled. Use --watch to enable. HEAD is now at 8c848b8 Generated from commit: https://github.com/eclipse/omr.website/commit/0e8b3220f2b1f32a84b487eca1f6eef185a28431 diff --git a/css/style.css b/css/style.css index ed74afc..cc381fc 100755 --- a/css/style.css +++ b/css/style.css @@ -105,23 +105,17 @@ h1 { } .f_link{ - /*padding-left: 18px; - background-position: left; - background-repeat: no-repeat;*/ float: left; } .f_link_2{ - /*padding-left: 18px; - background-position: left; - background-repeat: no-repeat;*/ float: left; margin-left: 8px; margin-right: 8px; } .f_mini{ - + } /* RESUME NORMAL CSS */ @@ -141,10 +135,8 @@ h1, h2, h3 { } p em { - /* font-weight: bold; */ font-weight: normal; - font-style: italic; - /* color: #353535; */ + font-style: italic; } p { @@ -175,7 +167,6 @@ strong, th { } .content { - /*margin: 90px 3% 7%;*/ max-width: 1100px; padding-left: 70px; padding-right: 70px; @@ -281,15 +272,9 @@ pre { padding: 16px; border-radius: 3px; overflow: auto; - /*border: 1px solid #ddd;*/ background-color: #e9e9e9; } -pre code { - /*overflow: scroll;*/ - /*word-break: break-all;*/ -} - /* top button */ #top { @@ -383,17 +368,6 @@ pre code { color: #47768c; } -pre, code { - /*white-space: pre-wrap !important;*/ -} - -footer { - /* font-size: 12px; - padding: 30px 10px 30px 10px; - border-top: 1px solid #ddd; - background-color: #f1f9ff;*/ -} - #git { background-image: url(/images/gitcat.png); background-size: 11px 16px; @@ -420,7 +394,6 @@ footer { #navbar { margin-left: 196px; - /*max-width: 1193px;*/ position: relative; } @@ -442,9 +415,7 @@ footer { padding: 0; margin: auto; position: absolute; - /*right: 183px;*/ top: 15px; - /*padding-left: 5%;*/ z-index: 1000; margin-right: calc(50% - 160px); margin-left: calc(50% - 340px); @@ -534,18 +505,18 @@ footer { } /* responsive */ - + @media all and (max-width: 899px) { #homeimg { width: 170px; } - + #eggContainer { margin-top: -2px; } - + #home-content { margin: 100px auto 3% auto; text-align: center; @@ -573,7 +544,6 @@ footer { h3 { font-size: 16px; line-height: 23px; - /*word-break: break-all;*/ } h4 { @@ -597,8 +567,7 @@ footer { } #description .omr { - /* display: none; */ - font-size: 4em; + font-size: 4em; } #description .description { @@ -607,7 +576,6 @@ footer { } #logo { - /*position: static;*/ width: 100%; } @@ -663,7 +631,6 @@ footer { float: none; border-bottom: 1px solid #ccc; margin: 0; - min-height: 47px; position: relative; background: #eee; cursor: pointer; @@ -697,14 +664,12 @@ footer { border: none; border-radius: 0; box-shadow: none; -/* max-height: 190px; */ overflow-y: hidden; overflow-x: hidden; } .dropit-trigger > a { display: block; - margin-bottom: 8px !important; } .menu ul.dropit-submenu a { @@ -723,14 +688,6 @@ footer { display: block; } - .active-mobile-menu { - /*border-bottom: none !important;*/ - } - - /*.active-mobile-menu .dropit-trigger { - margin-bottom: 0 !important; - }*/ - .menu ul.dropit-submenu a:hover { background: #cccccc; color: #666 !important; @@ -762,47 +719,47 @@ footer { display: none; } -#f_container_2 #f_1 { +#f_container_2 #f_1 { margin: auto; } - -#f_container_2 #f_1 .f_link_group .f_link_2 { + +#f_container_2 #f_1 .f_link_group .f_link_2 { float: none; } - -#f_container_2 #f_1 .f_link_group .f_link_2:after { + +#f_container_2 #f_1 .f_link_group .f_link_2:after { content:"\A"; - white-space:pre; + white-space:pre; } - + } @media all and (max-width: 600px) { - + #home-content { margin: 100px auto 3% auto; text-align: center; max-width: 340px; } - + #homeimg { max-width: 145px; } - + #description .omr { font-size: 3.2em; } - + #description .description { font-size: 1.8em; line-height: .9em; } - + } @media all and (max-width: 490px) { - + #boxes div { text-align: left; font-size: 1em; @@ -821,12 +778,11 @@ footer { text-align: center; max-width: 240px; } - + #description .omr { - /* display: none; */ font-size: 2.5em; } - + #description .description { font-size: 1.3em; line-height: .9em; @@ -835,13 +791,12 @@ footer { footer { margin: 0; } - + #sponsor { margin-top: 30px; } #fork { - /* margin-left: 7px; */ margin-top: 2px; margin-bottom: 30px; padding-left: 18px; @@ -854,15 +809,15 @@ footer { #install-command { font-size: 12px; } - + #homeimg { width: 105px; } - + } -.drop { +.drop { font-family: "Roboto", "Open Sans", "Helvetica Neue", sans-serif; font-weight: 100%; color: #BE0C0B; @@ -871,4 +826,3 @@ footer { line-height : 0.5; margin : 0.24em 0 0 0; } - \ No newline at end of file diff --git a/feed.xml b/feed.xml index 13ca780..ee321f6 100644 --- a/feed.xml +++ b/feed.xml @@ -5,8 +5,8 @@ /omr/ - Thu, 05 Jan 2017 13:23:16 -0500 - Thu, 05 Jan 2017 13:23:16 -0500 + Wed, 18 Jan 2017 13:24:25 -0500 + Wed, 18 Jan 2017 13:24:25 -0500 Jekyll v3.3.0 diff --git a/guide/best-practices.html b/guide/best-practices.html index 924851c..fcbec97 100644 --- a/guide/best-practices.html +++ b/guide/best-practices.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/guide/building.html b/guide/building.html index e2cfa06..1b67e0a 100644 --- a/guide/building.html +++ b/guide/building.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/guide/coding-stds.html b/guide/coding-stds.html index 2c9f442..a013b05 100644 --- a/guide/coding-stds.html +++ b/guide/coding-stds.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/guide/configuring.html b/guide/configuring.html index f17b4ab..63cf0d4 100644 --- a/guide/configuring.html +++ b/guide/configuring.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/guide/testing.html b/guide/testing.html index f161bfd..8acd6d8 100644 --- a/guide/testing.html +++ b/guide/testing.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/guide/troubleshooting.html b/guide/troubleshooting.html index d426519..5c28db4 100644 --- a/guide/troubleshooting.html +++ b/guide/troubleshooting.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/index.html b/index.html index ed6e89e..52484e9 100644 --- a/index.html +++ b/index.html @@ -27,105 +27,78 @@
-
- -
- -
diff --git a/js/app.js b/js/app.js index cd52a52..dbf1f59 100755 --- a/js/app.js +++ b/js/app.js @@ -1,3 +1,6 @@ +$(document).ready(function() { + $('.menu').dropit(); +}); $(function(){ @@ -139,7 +142,7 @@ $(function(){ $('#navmenu').toggle() $('#overlay').toggle() }) - + // show normal menu when resizing to full window size (only used when mobile menu has been activated, then window resized afterwards) $(window).on('resize', function(event){ var windowSizeWide = $(window).width(); @@ -152,51 +155,6 @@ $(function(){ } }).trigger('resize'); - // dropdown menu - - if ('ontouchstart' in document.documentElement) { - $('#application-menu').dropit({ action: 'click' }) - $('#getting-started-menu').dropit({ action: 'click' }) - $('#guide-menu').dropit({ action: 'click' }) - $('#reference-menu').dropit({ action: 'click' }) - $('#resources-menu').dropit({ action: 'click' }) - $('#resources-menu').dropit({ action: 'click' }) - } - else { - $('#application-menu').dropit({ action: 'mouseenter' }) - $('#getting-started-menu').dropit({ action: 'mouseenter' }) - $('#guide-menu').dropit({ action: 'mouseenter' }) - $('#reference-menu').dropit({ action: 'mouseenter' }) - $('#resources-menu').dropit({ action: 'mouseenter' }) - $('#releases-menu').dropit({ action: 'mouseenter' }) - } - - // mobile - - // main menu - $('#navmenu > li').click(function () { - - // applicable only if it has a menu - if ($(this).find('ul').length) { - - if ($(this).hasClass('active-mobile-menu')) { - $(this).removeClass('active-mobile-menu') - $(this).find('.dropit .dropit-submenu').hide() - } - else { - $('.dropit .dropit-submenu').hide() - $(this).find('.dropit .dropit-submenu').show() - $('#navmenu li.active-mobile-menu').removeClass('active-mobile-menu') - $(this).addClass('active-mobile-menu') - } - } - else { - var path = $(this).find('a').attr('href') - document.location = path - } - - }) - // when in mobile mode, menu names should open the submenu $('.dropit-trigger a').click(function (e) { @@ -214,8 +172,6 @@ $(function(){ }) - - function createCookie(name, value, days) { var expires; diff --git a/js/dropit.js b/js/dropit.js index 3babeeb..3ef0188 100644 --- a/js/dropit.js +++ b/js/dropit.js @@ -6,75 +6,111 @@ * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ +; +(function($) { -;(function($) { - - $.fn.dropit = function(method, minWidth) { - - minWidth = minWidth || '899px'; + $.fn.dropit = function(method) { var methods = { - - init : function(options) { + init: function(options) { this.dropit.settings = $.extend({}, this.dropit.defaults, options); return this.each(function() { var $el = $(this), - el = this, - settings = $.fn.dropit.settings; - + el = this, + settings = $.fn.dropit.settings; // Hide initial submenus $el.addClass('dropit') - .find('>'+ settings.triggerParentEl +':has('+ settings.submenuEl +')').addClass('dropit-trigger') - .find(settings.submenuEl).addClass('dropit-submenu').hide(); - - // Open on click - $el.on(settings.action, settings.triggerParentEl +':has('+ settings.submenuEl +') > '+ settings.triggerEl +'', function(){ + .find('>' + settings.triggerParentEl + ':has(' + settings.submenuEl + ')').addClass('dropit-trigger') + .find(settings.submenuEl).addClass('dropit-submenu').hide(); + + // Declare function for setting behaviour. Called by 'calcAction' function. + let setBehaviour = function(action) { + // Open menu on 'action' + $el.off().on(action, settings.triggerParentEl + ':has(' + settings.submenuEl + ') > ' + settings.triggerEl + '', function() { + // Close click menus if clicked again + if ((action == 'click') && $(this).parents(settings.triggerParentEl).hasClass('dropit-open')) { + settings.beforeHide.call(this); + $(this).parents(settings.triggerParentEl).removeClass('dropit-open').find(settings.submenuEl).hide(); + settings.afterHide.call(this); + return false; + } + + // Hide open menus + settings.beforeHide.call(this); + $('.dropit-open').removeClass('dropit-open').find('.dropit-submenu').hide(); + settings.afterHide.call(this); + + // Open this menu + settings.beforeShow.call(this); + $(this).parents(settings.triggerParentEl).addClass('dropit-open').find(settings.submenuEl).show(); + settings.afterShow.call(this); + + return false; + }); + + // Close on mouseleave if using 'mouseenter' action + if (action == 'mouseenter') { + $el.on('mouseleave', '.dropit-open', function() { + settings.beforeHide.call(this); + $(this).removeClass('dropit-open').find(settings.submenuEl).hide(); + settings.afterHide.call(this); + }); + } + } - if (!window.matchMedia('(min-width: '+ minWidth +')').matches) return; + // Calculate value of 'action' + let calcAction = function() { + var action; + if (settings.switchToClick != 'false' && $(window).width() < settings.switchToClick) { + action = 'click'; + } else { + action = settings.action; + } - // Close click menu's if clicked again - if(settings.action == 'click' && $(this).parents(settings.triggerParentEl).hasClass('dropit-open')){ - settings.beforeHide.call(this); - $(this).parents(settings.triggerParentEl).removeClass('dropit-open'); - $(this).find(settings.submenuEl).hide(); - settings.afterHide.call(this); - return false; + function is_touch_device() { + return (('ontouchstart' in window) || + (navigator.MaxTouchPoints > 0) || + (navigator.msMaxTouchPoints > 0)); } - // Hide open menus - settings.beforeHide.call(this); - $('.dropit-open').removeClass('dropit-open').find('.dropit-submenu').hide(); - settings.afterHide.call(this); + if (is_touch_device()) { + action = 'click'; + } - // Open this menu - settings.beforeShow.call(this); - $(this).parents(settings.triggerParentEl).addClass('dropit-open').find(settings.submenuEl).show(); - settings.afterShow.call(this); + console.log(`Menu trigger: ${action}`); + setBehaviour(action); // Sets the behaviour of the menu based on the newly calcultated value of 'action'. + } - return false; + calcAction(); + + // Re-calculate value of 'action' on window resize + var rtime; + var timeout = false; + var delta = 200; + $(window).resize(function() { + rtime = new Date(); + if (timeout === false) { + timeout = true; + setTimeout(resizeend, delta); + } }); - // Close if outside click - $(document).on('click', function(){ - - if (!window.matchMedia('(min-width: '+ minWidth +')').matches) return; + function resizeend() { + if (new Date() - rtime < delta) { + setTimeout(resizeend, delta); + } else { + timeout = false; + calcAction(); + } + } + // Close on outside click + $(document).on('click', function() { settings.beforeHide.call(this); $('.dropit-open').removeClass('dropit-open').find('.dropit-submenu').hide(); settings.afterHide.call(this); }); - // If leave hover - if(settings.action == 'mouseenter'){ - if (!window.matchMedia('(min-width: '+ minWidth +')').matches) return; - $el.on('mouseleave', function(){ - settings.beforeHide.call(this); - $(this).removeClass('dropit-open').find(settings.submenuEl).hide(); - settings.afterHide.call(this); - }); - - } - settings.afterLoad.call(this); }); } @@ -86,23 +122,29 @@ } else if (typeof method === 'object' || !method) { return methods.init.apply(this, arguments); } else { - $.error( 'Method "' + method + '" does not exist in dropit plugin!'); + $.error('Method "' + method + '" does not exist in dropit plugin!'); } }; $.fn.dropit.defaults = { - action: 'click', // The open action for the trigger + action: 'mouseenter', // The open action for the trigger + switchToClick: '899', + // Use when 'action' is set to 'mouseenter'. + // This value is the minimum window width in pixels before + // click-only menus are enforced. Useful for websites that + // display a 'mobile' menu on small desktop browser windows. + // Set to 'false' to disable this feature. submenuEl: 'ul', // The submenu element triggerEl: 'a', // The trigger element triggerParentEl: 'li', // The trigger parent element - afterLoad: function(){}, // Triggers when plugin has loaded - beforeShow: function(){}, // Triggers before submenu is shown - afterShow: function(){}, // Triggers after submenu is shown - beforeHide: function(){}, // Triggers before submenu is hidden - afterHide: function(){} // Triggers before submenu is hidden + afterLoad: function() {}, // Triggers when plugin has loaded + beforeShow: function() {}, // Triggers before submenu is shown + afterShow: function() {}, // Triggers after submenu is shown + beforeHide: function() {}, // Triggers before submenu is hidden + afterHide: function() {} // Triggers before submenu is hidden }; - $.fn.dropit.settings = {action: 'click'}; + $.fn.dropit.settings = {}; })(jQuery); diff --git a/reference/architecture.html b/reference/architecture.html index d222e6a..d67de92 100644 --- a/reference/architecture.html +++ b/reference/architecture.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/reference/components.html b/reference/components.html index 37d0167..039ecd0 100644 --- a/reference/components.html +++ b/reference/components.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/reference/gc.html b/reference/gc.html index bcdb9b5..b2f2df1 100644 --- a/reference/gc.html +++ b/reference/gc.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/reference/glue.html b/reference/glue.html index ee99c96..213ffa2 100644 --- a/reference/glue.html +++ b/reference/glue.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/reference/jit.html b/reference/jit.html index 7c83593..c90019d 100644 --- a/reference/jit.html +++ b/reference/jit.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/reference/port.html b/reference/port.html index 984672b..9cb06b7 100644 --- a/reference/port.html +++ b/reference/port.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/reference/thread.html b/reference/thread.html index fd7ccc9..646a959 100644 --- a/reference/thread.html +++ b/reference/thread.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/reference/tools.html b/reference/tools.html index f4793a9..3a18dc4 100644 --- a/reference/tools.html +++ b/reference/tools.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/reference/util.html b/reference/util.html index 3c4eeb2..0d3abf1 100644 --- a/reference/util.html +++ b/reference/util.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/reference/vm.html b/reference/vm.html index 2cffe34..e728ba1 100644 --- a/reference/vm.html +++ b/reference/vm.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/resources/blogs.html b/resources/blogs.html index 21bda99..c0422da 100644 --- a/resources/blogs.html +++ b/resources/blogs.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/resources/omr-on-github.html b/resources/omr-on-github.html index 95fc67c..97e2272 100644 --- a/resources/omr-on-github.html +++ b/resources/omr-on-github.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/resources/presentations.html b/resources/presentations.html index bf2afbb..5ccbcc8 100644 --- a/resources/presentations.html +++ b/resources/presentations.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/resources/whitepapers.html b/resources/whitepapers.html index a0c069a..011824a 100644 --- a/resources/whitepapers.html +++ b/resources/whitepapers.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/starter/goals.html b/starter/goals.html index d994a1f..3b89639 100644 --- a/starter/goals.html +++ b/starter/goals.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/starter/project.html b/starter/project.html index d0ae6a5..0e8e433 100644 --- a/starter/project.html +++ b/starter/project.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
diff --git a/starter/whatisomr.html b/starter/whatisomr.html index 2a8e462..4a35d16 100644 --- a/starter/whatisomr.html +++ b/starter/whatisomr.html @@ -26,107 +26,80 @@
-
-
- -
- - -
+
+ +
+ +
+ + + + +
[master 717ffae] Generated from commit: https://github.com/eclipse/omr.website/commit/fd73004a58473a3de440126139692a5cd2acbe19 29 files changed, 1954 insertions(+), 2650 deletions(-) create mode 100755 images/incubating@2x.png rewrite js/dropit.js (68%) On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working directory clean To /gitroot/www.eclipse.org/omr.git/ 8c848b8..717ffae master -> master Finished: SUCCESS