From d516b9a5fae67d20d7f229db6318adf224163800 Mon Sep 17 00:00:00 2001 From: MAYA Ma Date: Fri, 8 Apr 2016 09:39:05 +1000 Subject: [PATCH] update html templates for gh-pages --- assets/js-project/page-picker.js | 10 +- assets/js-project/ui-picker.js | 22 +-- assets/js-project/ui-progress.js | 2 +- assets/js-project/ui-snackbar.js | 4 +- .../sass-project/templates/_page-picker.scss | 10 +- css/project.css | 10 +- css/project.min.css | 2 +- js/project.js | 38 ++-- js/project.min.js | 2 +- templates/index.html | 20 +- templates/page-login.html | 12 +- templates/page-picker.html | 178 +++++++++--------- templates/ui-affix.html | 20 +- templates/ui-avatar.html | 20 +- templates/ui-button-fab.html | 20 +- templates/ui-button.html | 20 +- templates/ui-card.html | 20 +- templates/ui-collapse.html | 24 +-- templates/ui-data-table.html | 20 +- templates/ui-dialog.html | 32 ++-- templates/ui-dropdown-menu.html | 20 +- templates/ui-icon.html | 20 +- templates/ui-label.html | 20 +- templates/ui-modal.html | 28 +-- templates/ui-nav-drawer.html | 28 +-- templates/ui-nav.html | 20 +- templates/ui-picker.html | 64 +++---- templates/ui-progress.html | 46 ++--- templates/ui-selection-control.html | 44 ++--- templates/ui-snackbar.html | 24 +-- templates/ui-tab.html | 80 ++++---- templates/ui-text-field.html | 68 +++---- templates/ui-tile.html | 106 +++++------ templates/ui-toolbar.html | 20 +- 34 files changed, 537 insertions(+), 537 deletions(-) diff --git a/assets/js-project/page-picker.js b/assets/js-project/page-picker.js index 0ebf4ab36..ebdec69e6 100644 --- a/assets/js-project/page-picker.js +++ b/assets/js-project/page-picker.js @@ -3,8 +3,8 @@ pickerMap, pickerMarker; - function initMap () { - pickerMap = new google.maps.Map(document.getElementById('picker_info_map_wrap'), { + function initPickerMap () { + pickerMap = new google.maps.Map(document.getElementById('ui_picker_map_wrap'), { center: { lat: 0, lng: 0 @@ -21,7 +21,7 @@ }; if (typeof google != 'undefined') { - initMap(); + initPickerMap(); }; if (typeof jQuery.ui != 'undefined') { @@ -74,7 +74,7 @@ $('.ui-picker-info-desc-wrap').html($selectingParent.find('.ui-picker-info-desc').html()); $('.ui-picker-info-title-wrap').html($selectingParent.find('.ui-picker-info-title').html()); - var pickerMapLatLng = new google.maps.LatLng($selectingParent.find('.ui-picker-info-map-lat').html(), $selectingParent.find('.ui-picker-info-map-lng').html()); + var pickerMapLatLng = new google.maps.LatLng($selectingParent.find('.ui-picker-map-lat').html(), $selectingParent.find('.ui-picker-map-lng').html()); pickerMap.setCenter(pickerMapLatLng); pickerMarker.setMap(pickerMap); @@ -96,7 +96,7 @@ $('.ui-picker-info-desc-wrap').html($first.find('.ui-picker-info-desc').html()); $('.ui-picker-info-title-wrap').html($first.find('.ui-picker-info-title').html()); - var firstLatLng = new google.maps.LatLng($first.find('.ui-picker-info-map-lat').html(), $first.find('.ui-picker-info-map-lng').html()); + var firstLatLng = new google.maps.LatLng($first.find('.ui-picker-map-lat').html(), $first.find('.ui-picker-map-lng').html()); pickerMap.setCenter(firstLatLng); pickerMarker.setMap(pickerMap); diff --git a/assets/js-project/ui-picker.js b/assets/js-project/ui-picker.js index ebbe942cb..d1f6538f5 100644 --- a/assets/js-project/ui-picker.js +++ b/assets/js-project/ui-picker.js @@ -1,7 +1,7 @@ // ui-picker.html - $('#doc_datepicker_example_1').pickdate(); + $('#ui_datepicker_example_1').pickdate(); - $('#doc_datepicker_example_2').pickdate({ + $('#ui_datepicker_example_2').pickdate({ cancel: 'Clear', closeOnCancel: false, closeOnSelect: true, @@ -25,7 +25,7 @@ today: '' }); - $('#doc_datepicker_example_3').pickdate({ + $('#ui_datepicker_example_3').pickdate({ disable: [ [2016,0,12], [2016,0,13], @@ -34,7 +34,7 @@ today: '' }); - $('#doc_datepicker_example_4').pickdate({ + $('#ui_datepicker_example_4').pickdate({ disable: [ new Date(2016,0,12), new Date(2016,0,13), @@ -43,14 +43,14 @@ today: '' }); - $('#doc_datepicker_example_5').pickdate({ + $('#ui_datepicker_example_5').pickdate({ disable: [ 2, 4, 6 ], today: '' }); - $('#doc_datepicker_example_6').pickdate({ + $('#ui_datepicker_example_6').pickdate({ disable: [ { from: [2016,0,12], @@ -60,7 +60,7 @@ today: '' }); - $('#doc_datepicker_example_7').pickdate({ + $('#ui_datepicker_example_7').pickdate({ disable: [ true, 3, @@ -70,7 +70,7 @@ today: '' }); - $('#doc_datepicker_example_8').pickdate({ + $('#ui_datepicker_example_8').pickdate({ disable: [ { from: [2016,0,10], @@ -86,19 +86,19 @@ today: '' }); - $('#doc_datepicker_example_9').pickdate({ + $('#ui_datepicker_example_9').pickdate({ max: [2016,0,30], min: [2016,0,10], today: '' }); - $('#doc_datepicker_example_10').pickdate({ + $('#ui_datepicker_example_10').pickdate({ max: new Date(2016,0,30), min: new Date(2016,0,10), today: '' }); - $('#doc_datepicker_example_11').pickdate({ + $('#ui_datepicker_example_11').pickdate({ max: true, min: -10, today: '' diff --git a/assets/js-project/ui-progress.js b/assets/js-project/ui-progress.js index 920caabae..db37bfa4a 100644 --- a/assets/js-project/ui-progress.js +++ b/assets/js-project/ui-progress.js @@ -4,7 +4,7 @@ $($(this).attr('data-target')).addClass('el-loading-done'); }); - $('#doc_el_loading_example_wrap .tile-active-show').each(function (index) { + $('#ui_el_loading_example_wrap .tile-active-show').each(function (index) { var $this = $(this), timer; diff --git a/assets/js-project/ui-snackbar.js b/assets/js-project/ui-snackbar.js index be4b6af48..b1ca98498 100644 --- a/assets/js-project/ui-snackbar.js +++ b/assets/js-project/ui-snackbar.js @@ -1,7 +1,7 @@ // ui-snackbar.html var snackbarText = 1; - $('#doc_snackbar_toggle_1').on('click', function () { + $('#ui_snackbar_toggle_1').on('click', function () { $('body').snackbar({ content: 'Simple snackbar ' + snackbarText + ' with some text', show: function () { @@ -10,7 +10,7 @@ }); }); - $('#doc_snackbar_toggle_2').on('click', function () { + $('#ui_snackbar_toggle_2').on('click', function () { $('body').snackbar({ content: 'Dismiss
Simple snackbar ' + snackbarText + ' with some text and a simple link.
', show: function () { diff --git a/assets/sass-project/templates/_page-picker.scss b/assets/sass-project/templates/_page-picker.scss index 183c5d824..ad3051ac4 100644 --- a/assets/sass-project/templates/_page-picker.scss +++ b/assets/sass-project/templates/_page-picker.scss @@ -55,11 +55,6 @@ padding-left: $grid-gutter; } - .ui-picker-info-map-wrap { - height: ($grid-gutter * 25 / 16 * 9); - width: ($grid-gutter * 25); - } - .ui-picker-info-null { &:after { background-color: $offwhite-solid; @@ -109,6 +104,11 @@ position: relative; } + .ui-picker-map-wrap { + height: ($grid-gutter * 25 / 16 * 9); + width: ($grid-gutter * 25); + } + .ui-picker-nav { @extend .ui-picker-info; width: ($grid-gutter * 15); diff --git a/css/project.css b/css/project.css index be11695e2..93d44059c 100644 --- a/css/project.css +++ b/css/project.css @@ -93,11 +93,6 @@ body { padding-left: 16px; } -.ui-picker-info-map-wrap { - height: 225px; - width: 400px; -} - .ui-picker-info-null:after { background-color: #f5f5f5; content: "Select an item to view its details."; @@ -154,6 +149,11 @@ body { position: relative; } +.ui-picker-map-wrap { + height: 225px; + width: 400px; +} + .ui-picker-nav { width: 240px; } diff --git a/css/project.min.css b/css/project.min.css index 7ef774e3a..1de2a44f0 100644 --- a/css/project.min.css +++ b/css/project.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Roboto:300,300italic,400,400italic,500,500italic);.ui-card-wrap:after,.ui-picker-lib:after{clear:both}body{padding-bottom:69px}.ui-content-header{background-position:50% 50%;background-repeat:no-repeat;background-size:cover;margin-bottom:-58px;padding-top:68px;padding-bottom:58px}.page-brand .ui-content-header{background-image:url(./images/bg/brand.jpg)}.ui-footer{border-top:1px solid rgba(0,0,0,.12);text-align:center;padding-top:12px;padding-bottom:12px;position:absolute;bottom:0;right:0;left:0}.ui-header .dropdown.open .dropdown-toggle{background-color:transparent}.ui-picker-divider{background-color:#dadada;-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;position:relative;width:1px;z-index:1}.ui-picker-draggable-count{position:absolute;top:-16px;right:-16px}.ui-picker-draggable-handler{cursor:crosshair;cursor:-webkit-grab;position:relative}.ui-picker-selected .ui-picker-draggable-handler{z-index:2}.ui-picker-selected .ui-picker-draggable-handler:active{cursor:-webkit-grabbing}.ui-picker-selected .ui-picker-draggable-handler strong{display:none}.ui-picker-selected .ui-picker-draggable-handler .icon{display:inline-block}.ui-picker-draggable-handler strong{display:inline}.ui-picker-draggable-handler .icon{display:none}.ui-picker-info,.ui-picker-nav{background-color:#fff;-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;overflow:hidden;position:relative;-webkit-transition:width .3s cubic-bezier(.4,0,.2,1);transition:width .3s cubic-bezier(.4,0,.2,1);width:0}.ui-picker-info-active{width:400px}.ui-picker-info-detail{padding-right:16px;padding-left:16px}.ui-picker-info-map-wrap{height:225px;width:400px}.ui-picker-info-null:after{background-color:#f5f5f5;content:"Select an item to view its details.";display:block;font-size:20px;font-weight:300;height:100%;line-height:28px;padding:58px 16px;position:absolute;top:0;left:0;text-align:center;width:100%;z-index:1}.ui-picker-inner{overflow-x:hidden;overflow-y:auto;position:absolute;top:0;right:0;bottom:0;left:0}.ui-picker-item{position:relative;-webkit-transition:opacity .3s cubic-bezier(.4,0,.2,1);transition:opacity .3s cubic-bezier(.4,0,.2,1)}.ui-picker-lib.ui-picker-dragging .ui-picker-item.ui-picker-draggable{opacity:.69}.ui-picker-lib{min-height:calc(100vh - 56px)}.ui-picker-lib:after,.ui-picker-lib:before{content:"";display:table;line-height:0}.ui-picker-main{-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;position:relative}.ui-picker-nav{width:240px}.ui-picker-page{height:100vh;min-width:992px;padding-top:56px;padding-bottom:0}.ui-picker-selectable-handler{display:block;height:100%;position:absolute;top:0;left:0;width:100%;z-index:1}.ui-picker-wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;height:100%;overflow:hidden;width:100%}.ui-draggable-helper{width:208px!important}.ui-droppable-helper{background-color:rgba(255,64,129,.09)!important;border-color:#ff4081!important}.ui-selectable-helper{background-color:rgba(0,0,0,.12);border:1px solid #dadada;box-shadow:0 0 10px rgba(0,0,0,.1);position:absolute;z-index:100}.ui-card-pre{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}@media only screen and (min-width:768px){.ui-card-pre{min-height:189px}.ui-card-pre-media{min-height:353px}}@media only screen and (min-width:992px){.ui-card-pre-media{min-height:394px}}@media only screen and (min-width:1440px){.ui-card-pre-media{min-height:389px}}.ui-card-wrap{margin-top:24px;margin-bottom:-24px}.ui-card-wrap:after,.ui-card-wrap:before{content:"";display:table;line-height:0}.ui-card-wrap .card{margin-top:0}.ui-tab{margin-top:10px} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Roboto:300,300italic,400,400italic,500,500italic);.ui-card-wrap:after,.ui-picker-lib:after{clear:both}body{padding-bottom:69px}.ui-content-header{background-position:50% 50%;background-repeat:no-repeat;background-size:cover;margin-bottom:-58px;padding-top:68px;padding-bottom:58px}.page-brand .ui-content-header{background-image:url(./images/bg/brand.jpg)}.ui-footer{border-top:1px solid rgba(0,0,0,.12);text-align:center;padding-top:12px;padding-bottom:12px;position:absolute;bottom:0;right:0;left:0}.ui-header .dropdown.open .dropdown-toggle{background-color:transparent}.ui-picker-divider{background-color:#dadada;-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;position:relative;width:1px;z-index:1}.ui-picker-draggable-count{position:absolute;top:-16px;right:-16px}.ui-picker-draggable-handler{cursor:crosshair;cursor:-webkit-grab;position:relative}.ui-picker-selected .ui-picker-draggable-handler{z-index:2}.ui-picker-selected .ui-picker-draggable-handler:active{cursor:-webkit-grabbing}.ui-picker-selected .ui-picker-draggable-handler strong{display:none}.ui-picker-selected .ui-picker-draggable-handler .icon{display:inline-block}.ui-picker-draggable-handler strong{display:inline}.ui-picker-draggable-handler .icon{display:none}.ui-picker-info,.ui-picker-nav{background-color:#fff;-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;overflow:hidden;position:relative;-webkit-transition:width .3s cubic-bezier(.4,0,.2,1);transition:width .3s cubic-bezier(.4,0,.2,1);width:0}.ui-picker-info-active{width:400px}.ui-picker-info-detail{padding-right:16px;padding-left:16px}.ui-picker-info-null:after{background-color:#f5f5f5;content:"Select an item to view its details.";display:block;font-size:20px;font-weight:300;height:100%;line-height:28px;padding:58px 16px;position:absolute;top:0;left:0;text-align:center;width:100%;z-index:1}.ui-picker-inner{overflow-x:hidden;overflow-y:auto;position:absolute;top:0;right:0;bottom:0;left:0}.ui-picker-item{position:relative;-webkit-transition:opacity .3s cubic-bezier(.4,0,.2,1);transition:opacity .3s cubic-bezier(.4,0,.2,1)}.ui-picker-lib.ui-picker-dragging .ui-picker-item.ui-picker-draggable{opacity:.69}.ui-picker-lib{min-height:calc(100vh - 56px)}.ui-picker-lib:after,.ui-picker-lib:before{content:"";display:table;line-height:0}.ui-picker-main{-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;position:relative}.ui-picker-map-wrap{height:225px;width:400px}.ui-picker-nav{width:240px}.ui-picker-page{height:100vh;min-width:992px;padding-top:56px;padding-bottom:0}.ui-picker-selectable-handler{display:block;height:100%;position:absolute;top:0;left:0;width:100%;z-index:1}.ui-picker-wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;height:100%;overflow:hidden;width:100%}.ui-draggable-helper{width:208px!important}.ui-droppable-helper{background-color:rgba(255,64,129,.09)!important;border-color:#ff4081!important}.ui-selectable-helper{background-color:rgba(0,0,0,.12);border:1px solid #dadada;box-shadow:0 0 10px rgba(0,0,0,.1);position:absolute;z-index:100}.ui-card-pre{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}@media only screen and (min-width:768px){.ui-card-pre{min-height:189px}.ui-card-pre-media{min-height:353px}}@media only screen and (min-width:992px){.ui-card-pre-media{min-height:394px}}@media only screen and (min-width:1440px){.ui-card-pre-media{min-height:389px}}.ui-card-wrap{margin-top:24px;margin-bottom:-24px}.ui-card-wrap:after,.ui-card-wrap:before{content:"";display:table;line-height:0}.ui-card-wrap .card{margin-top:0}.ui-tab{margin-top:10px} \ No newline at end of file diff --git a/js/project.js b/js/project.js index a1a20b055..211a593dc 100644 --- a/js/project.js +++ b/js/project.js @@ -3,8 +3,8 @@ pickerMap, pickerMarker; - function initMap () { - pickerMap = new google.maps.Map(document.getElementById('picker_info_map_wrap'), { + function initPickerMap () { + pickerMap = new google.maps.Map(document.getElementById('ui_picker_map_wrap'), { center: { lat: 0, lng: 0 @@ -21,7 +21,7 @@ }; if (typeof google != 'undefined') { - initMap(); + initPickerMap(); }; if (typeof jQuery.ui != 'undefined') { @@ -74,7 +74,7 @@ $('.ui-picker-info-desc-wrap').html($selectingParent.find('.ui-picker-info-desc').html()); $('.ui-picker-info-title-wrap').html($selectingParent.find('.ui-picker-info-title').html()); - var pickerMapLatLng = new google.maps.LatLng($selectingParent.find('.ui-picker-info-map-lat').html(), $selectingParent.find('.ui-picker-info-map-lng').html()); + var pickerMapLatLng = new google.maps.LatLng($selectingParent.find('.ui-picker-map-lat').html(), $selectingParent.find('.ui-picker-map-lng').html()); pickerMap.setCenter(pickerMapLatLng); pickerMarker.setMap(pickerMap); @@ -96,7 +96,7 @@ $('.ui-picker-info-desc-wrap').html($first.find('.ui-picker-info-desc').html()); $('.ui-picker-info-title-wrap').html($first.find('.ui-picker-info-title').html()); - var firstLatLng = new google.maps.LatLng($first.find('.ui-picker-info-map-lat').html(), $first.find('.ui-picker-info-map-lng').html()); + var firstLatLng = new google.maps.LatLng($first.find('.ui-picker-map-lat').html(), $first.find('.ui-picker-map-lng').html()); pickerMap.setCenter(firstLatLng); pickerMarker.setMap(pickerMap); @@ -111,9 +111,9 @@ }); // ui-picker.html - $('#doc_datepicker_example_1').pickdate(); + $('#ui_datepicker_example_1').pickdate(); - $('#doc_datepicker_example_2').pickdate({ + $('#ui_datepicker_example_2').pickdate({ cancel: 'Clear', closeOnCancel: false, closeOnSelect: true, @@ -137,7 +137,7 @@ today: '' }); - $('#doc_datepicker_example_3').pickdate({ + $('#ui_datepicker_example_3').pickdate({ disable: [ [2016,0,12], [2016,0,13], @@ -146,7 +146,7 @@ today: '' }); - $('#doc_datepicker_example_4').pickdate({ + $('#ui_datepicker_example_4').pickdate({ disable: [ new Date(2016,0,12), new Date(2016,0,13), @@ -155,14 +155,14 @@ today: '' }); - $('#doc_datepicker_example_5').pickdate({ + $('#ui_datepicker_example_5').pickdate({ disable: [ 2, 4, 6 ], today: '' }); - $('#doc_datepicker_example_6').pickdate({ + $('#ui_datepicker_example_6').pickdate({ disable: [ { from: [2016,0,12], @@ -172,7 +172,7 @@ today: '' }); - $('#doc_datepicker_example_7').pickdate({ + $('#ui_datepicker_example_7').pickdate({ disable: [ true, 3, @@ -182,7 +182,7 @@ today: '' }); - $('#doc_datepicker_example_8').pickdate({ + $('#ui_datepicker_example_8').pickdate({ disable: [ { from: [2016,0,10], @@ -198,19 +198,19 @@ today: '' }); - $('#doc_datepicker_example_9').pickdate({ + $('#ui_datepicker_example_9').pickdate({ max: [2016,0,30], min: [2016,0,10], today: '' }); - $('#doc_datepicker_example_10').pickdate({ + $('#ui_datepicker_example_10').pickdate({ max: new Date(2016,0,30), min: new Date(2016,0,10), today: '' }); - $('#doc_datepicker_example_11').pickdate({ + $('#ui_datepicker_example_11').pickdate({ max: true, min: -10, today: '' @@ -222,7 +222,7 @@ $($(this).attr('data-target')).addClass('el-loading-done'); }); - $('#doc_el_loading_example_wrap .tile-active-show').each(function (index) { + $('#ui_el_loading_example_wrap .tile-active-show').each(function (index) { var $this = $(this), timer; @@ -243,7 +243,7 @@ // ui-snackbar.html var snackbarText = 1; - $('#doc_snackbar_toggle_1').on('click', function () { + $('#ui_snackbar_toggle_1').on('click', function () { $('body').snackbar({ content: 'Simple snackbar ' + snackbarText + ' with some text', show: function () { @@ -252,7 +252,7 @@ }); }); - $('#doc_snackbar_toggle_2').on('click', function () { + $('#ui_snackbar_toggle_2').on('click', function () { $('body').snackbar({ content: 'Dismiss
Simple snackbar ' + snackbarText + ' with some text and a simple link.
', show: function () { diff --git a/js/project.min.js b/js/project.min.js index 204f5d027..71a526218 100644 --- a/js/project.min.js +++ b/js/project.min.js @@ -1 +1 @@ -function initMap(){pickerMap=new google.maps.Map(document.getElementById("picker_info_map_wrap"),{center:{lat:0,lng:0},disableDefaultUI:!0,mapTypeId:google.maps.MapTypeId.ROADMAP,zoom:15}),pickerMarker=new google.maps.Marker({map:pickerMap,position:{lat:0,lng:0}})}var $pickerLib=$(".ui-picker-lib"),pickerMap,pickerMarker;"undefined"!=typeof google&&initMap(),"undefined"!=typeof jQuery.ui&&($(".ui-picker-draggable-handler").draggable({addClasses:!1,appendTo:"body",cursor:"move",cursorAt:{top:0,left:0},delay:100,helper:function(){return $('
'+$(".ui-picker-selected:first .ui-picker-draggable-avatar strong").html()+'
'+$(".ui-picker-selected:first .ui-picker-info-title").html()+"
")},start:function(a,b){var c=$(".ui-picker-selected").length;c>1&&$(".ui-draggable-helper").append('
'+c+"
")},zIndex:100}),$(".ui-picker-nav .nav a").droppable({accept:".ui-picker-draggable-handler",addClasses:!1,drop:function(a,b){$("body").snackbar({content:'Dropped on "'+$(this).html()+'"'})},hoverClass:"ui-droppable-helper",tolerance:"pointer"}),$pickerLib.selectable({cancel:".ui-picker-draggable-handler",filter:".ui-picker-selectable-handler",selecting:function(a,b){var c=$(b.selecting).parent();c.addClass("tile-brand-accent ui-picker-selected"),$(".ui-picker-info").addClass("ui-picker-info-active").removeClass("ui-picker-info-null"),$(".ui-picker-info-desc-wrap").html(c.find(".ui-picker-info-desc").html()),$(".ui-picker-info-title-wrap").html(c.find(".ui-picker-info-title").html());var d=new google.maps.LatLng(c.find(".ui-picker-info-map-lat").html(),c.find(".ui-picker-info-map-lng").html());pickerMap.setCenter(d),pickerMarker.setMap(pickerMap),pickerMarker.setPosition(d)},unselecting:function(a,b){var c=$(b.unselecting).parent();if(c.removeClass("tile-brand-accent ui-picker-selected"),$(".ui-picker-selected").length){var d=$($(".ui-picker-selected")[0]);$(".ui-picker-info-desc-wrap").html(d.find(".ui-picker-info-desc").html()),$(".ui-picker-info-title-wrap").html(d.find(".ui-picker-info-title").html());var e=new google.maps.LatLng(d.find(".ui-picker-info-map-lat").html(),d.find(".ui-picker-info-map-lng").html());pickerMap.setCenter(e),pickerMarker.setMap(pickerMap),pickerMarker.setPosition(e)}else $(".ui-picker-info").addClass("ui-picker-info-null"),$(".ui-picker-info-desc-wrap").html(""),$(".ui-picker-info-title-wrap").html(""),pickerMarker.setMap(null)}})),$(document).on("click",".ui-picker-info-close",function(){$(".ui-picker-info").removeClass("ui-picker-info-active")}),$("#doc_datepicker_example_1").pickdate(),$("#doc_datepicker_example_2").pickdate({cancel:"Clear",closeOnCancel:!1,closeOnSelect:!0,container:"",firstDay:1,format:"You selecte!d: dddd, d mm, yy",formatSubmit:"dd/mmmm/yyyy",ok:"Close",onClose:function(){$("body").snackbar({content:"Datepicker closes"})},onOpen:function(){$("body").snackbar({content:"Datepicker opens"})},selectMonths:!0,selectYears:10,today:""}),$("#doc_datepicker_example_3").pickdate({disable:[[2016,0,12],[2016,0,13],[2016,0,14]],today:""}),$("#doc_datepicker_example_4").pickdate({disable:[new Date(2016,0,12),new Date(2016,0,13),new Date(2016,0,14)],today:""}),$("#doc_datepicker_example_5").pickdate({disable:[2,4,6],today:""}),$("#doc_datepicker_example_6").pickdate({disable:[{from:[2016,0,12],to:2}],today:""}),$("#doc_datepicker_example_7").pickdate({disable:[!0,3,[2016,0,13],new Date(2016,0,14)],today:""}),$("#doc_datepicker_example_8").pickdate({disable:[{from:[2016,0,10],to:[2016,0,30]},[2016,0,13,"inverted"],{from:[2016,0,19],to:[2016,0,21],inverted:!0}],today:""}),$("#doc_datepicker_example_9").pickdate({max:[2016,0,30],min:[2016,0,10],today:""}),$("#doc_datepicker_example_10").pickdate({max:new Date(2016,0,30),min:new Date(2016,0,10),today:""}),$("#doc_datepicker_example_11").pickdate({max:!0,min:-10,today:""}),$(".finish-loading").on("click",function(a){a.stopPropagation(),$($(this).attr("data-target")).addClass("el-loading-done")}),$("#doc_el_loading_example_wrap .tile-active-show").each(function(a){var b,c=$(this);c.on("hide.bs.tile",function(a){clearTimeout(b)}),c.on("show.bs.tile",function(a){$(".el-loading",c).hasClass("el-loading-done")||(b=setTimeout(function(){$(".el-loading",c).addClass("el-loading-done"),c.prepend('

Additional information
Aliquam in pharetra leo. In congue, massa sed elementum dictum, justo quam efficitur risus, in posuere mi orci ultrices diam.

')},6e3))})});var snackbarText=1;$("#doc_snackbar_toggle_1").on("click",function(){$("body").snackbar({content:"Simple snackbar "+snackbarText+" with some text",show:function(){snackbarText++}})}),$("#doc_snackbar_toggle_2").on("click",function(){$("body").snackbar({content:'Dismiss
Simple snackbar '+snackbarText+' with some text and a simple link.
',show:function(){snackbarText++}})}); \ No newline at end of file +function initPickerMap(){pickerMap=new google.maps.Map(document.getElementById("ui_picker_map_wrap"),{center:{lat:0,lng:0},disableDefaultUI:!0,mapTypeId:google.maps.MapTypeId.ROADMAP,zoom:15}),pickerMarker=new google.maps.Marker({map:pickerMap,position:{lat:0,lng:0}})}var $pickerLib=$(".ui-picker-lib"),pickerMap,pickerMarker;"undefined"!=typeof google&&initPickerMap(),"undefined"!=typeof jQuery.ui&&($(".ui-picker-draggable-handler").draggable({addClasses:!1,appendTo:"body",cursor:"move",cursorAt:{top:0,left:0},delay:100,helper:function(){return $('
'+$(".ui-picker-selected:first .ui-picker-draggable-avatar strong").html()+'
'+$(".ui-picker-selected:first .ui-picker-info-title").html()+"
")},start:function(a,b){var c=$(".ui-picker-selected").length;c>1&&$(".ui-draggable-helper").append('
'+c+"
")},zIndex:100}),$(".ui-picker-nav .nav a").droppable({accept:".ui-picker-draggable-handler",addClasses:!1,drop:function(a,b){$("body").snackbar({content:'Dropped on "'+$(this).html()+'"'})},hoverClass:"ui-droppable-helper",tolerance:"pointer"}),$pickerLib.selectable({cancel:".ui-picker-draggable-handler",filter:".ui-picker-selectable-handler",selecting:function(a,b){var c=$(b.selecting).parent();c.addClass("tile-brand-accent ui-picker-selected"),$(".ui-picker-info").addClass("ui-picker-info-active").removeClass("ui-picker-info-null"),$(".ui-picker-info-desc-wrap").html(c.find(".ui-picker-info-desc").html()),$(".ui-picker-info-title-wrap").html(c.find(".ui-picker-info-title").html());var d=new google.maps.LatLng(c.find(".ui-picker-map-lat").html(),c.find(".ui-picker-map-lng").html());pickerMap.setCenter(d),pickerMarker.setMap(pickerMap),pickerMarker.setPosition(d)},unselecting:function(a,b){var c=$(b.unselecting).parent();if(c.removeClass("tile-brand-accent ui-picker-selected"),$(".ui-picker-selected").length){var d=$($(".ui-picker-selected")[0]);$(".ui-picker-info-desc-wrap").html(d.find(".ui-picker-info-desc").html()),$(".ui-picker-info-title-wrap").html(d.find(".ui-picker-info-title").html());var e=new google.maps.LatLng(d.find(".ui-picker-map-lat").html(),d.find(".ui-picker-map-lng").html());pickerMap.setCenter(e),pickerMarker.setMap(pickerMap),pickerMarker.setPosition(e)}else $(".ui-picker-info").addClass("ui-picker-info-null"),$(".ui-picker-info-desc-wrap").html(""),$(".ui-picker-info-title-wrap").html(""),pickerMarker.setMap(null)}})),$(document).on("click",".ui-picker-info-close",function(){$(".ui-picker-info").removeClass("ui-picker-info-active")}),$("#ui_datepicker_example_1").pickdate(),$("#ui_datepicker_example_2").pickdate({cancel:"Clear",closeOnCancel:!1,closeOnSelect:!0,container:"",firstDay:1,format:"You selecte!d: dddd, d mm, yy",formatSubmit:"dd/mmmm/yyyy",ok:"Close",onClose:function(){$("body").snackbar({content:"Datepicker closes"})},onOpen:function(){$("body").snackbar({content:"Datepicker opens"})},selectMonths:!0,selectYears:10,today:""}),$("#ui_datepicker_example_3").pickdate({disable:[[2016,0,12],[2016,0,13],[2016,0,14]],today:""}),$("#ui_datepicker_example_4").pickdate({disable:[new Date(2016,0,12),new Date(2016,0,13),new Date(2016,0,14)],today:""}),$("#ui_datepicker_example_5").pickdate({disable:[2,4,6],today:""}),$("#ui_datepicker_example_6").pickdate({disable:[{from:[2016,0,12],to:2}],today:""}),$("#ui_datepicker_example_7").pickdate({disable:[!0,3,[2016,0,13],new Date(2016,0,14)],today:""}),$("#ui_datepicker_example_8").pickdate({disable:[{from:[2016,0,10],to:[2016,0,30]},[2016,0,13,"inverted"],{from:[2016,0,19],to:[2016,0,21],inverted:!0}],today:""}),$("#ui_datepicker_example_9").pickdate({max:[2016,0,30],min:[2016,0,10],today:""}),$("#ui_datepicker_example_10").pickdate({max:new Date(2016,0,30),min:new Date(2016,0,10),today:""}),$("#ui_datepicker_example_11").pickdate({max:!0,min:-10,today:""}),$(".finish-loading").on("click",function(a){a.stopPropagation(),$($(this).attr("data-target")).addClass("el-loading-done")}),$("#ui_el_loading_example_wrap .tile-active-show").each(function(a){var b,c=$(this);c.on("hide.bs.tile",function(a){clearTimeout(b)}),c.on("show.bs.tile",function(a){$(".el-loading",c).hasClass("el-loading-done")||(b=setTimeout(function(){$(".el-loading",c).addClass("el-loading-done"),c.prepend('

Additional information
Aliquam in pharetra leo. In congue, massa sed elementum dictum, justo quam efficitur risus, in posuere mi orci ultrices diam.

')},6e3))})});var snackbarText=1;$("#ui_snackbar_toggle_1").on("click",function(){$("body").snackbar({content:"Simple snackbar "+snackbarText+" with some text",show:function(){snackbarText++}})}),$("#ui_snackbar_toggle_2").on("click",function(){$("body").snackbar({content:'Dismiss
Simple snackbar '+snackbarText+' with some text and a simple link.
',show:function(){snackbarText++}})}); \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index a835e79ae..c66fc1634 100644 --- a/templates/index.html +++ b/templates/index.html @@ -17,7 +17,7 @@
-