diff --git a/openy_system/assets/addtocalendar-master/README.md b/openy_system/assets/addtocalendar-master/README.md new file mode 100644 index 00000000..b62ba019 --- /dev/null +++ b/openy_system/assets/addtocalendar-master/README.md @@ -0,0 +1,19 @@ +AddToCalendar +============= + +AddToCalendar — free customizable JavaScript widget "Add to Calendar" for event page. It allows users to easily schedule the event in their calendar. + +The widget uses fast (HTTP/2) and secure (SSL A+ grade from SSL Labs) server of https://addtocalendar.com service. By default the widget adds small link to the service on the bottom of event and you can ask support@addtocalendar.com for changes. + +Install from NPM +================ +``` +$ npm install addtocalendar +``` + +Install from Bower +================ +``` +$ npm install -g bower +$ bower install addtocalendar +``` diff --git a/openy_system/assets/addtocalendar-master/addtocalendar.js b/openy_system/assets/addtocalendar-master/addtocalendar.js new file mode 100644 index 00000000..298f638b --- /dev/null +++ b/openy_system/assets/addtocalendar-master/addtocalendar.js @@ -0,0 +1,345 @@ +/* http://addtocalendar.com/ + * + * + * @license + The MIT License (MIT) + Copyright (c) 2015 AddToCalendar + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + */ + +(function (w, d) { + var + atc_url = '//addtocalendar.com/atc/', + atc_version = '1.5'; + + + if (!Array.indexOf) { + Array.prototype.indexOf = function (obj) { + for (var i = 0, l = this.length; i < l; i++) { + if (this[i] == obj) { + return i + } + } + return -1 + } + } + + if (!Array.prototype.map) { + Array.prototype.map = function (f) { + var result = []; + for (var i = 0, l = this.length; i < l; i++) { + result.push(f(this[i])) + } + return result + } + } + + var isArray = function (obj) { + return Object.prototype.toString.call(obj) === "[object Array]" + }; + + var isFunc = function (obj) { + return Object.prototype.toString.call(obj) === "[object Function]" + }; + + var ready = function (w, d) { + var inited = false, + loaded = false, + queue = [], + done, old; + + function go() { + if (!inited) { + if (!d.body) return setTimeout(go, 13); + inited = true; + if (queue) { + var j, k = 0; + while (j = queue[k++]) j.call(null); + queue = null + } + } + } + + function check() { + if (loaded) return; + loaded = true; + if (d.readyState === "complete") return go(); + if (d.addEventListener) { + d.addEventListener("DOMContentLoaded", done, false); + w.addEventListener("load", go, false) + } else { + if (d.attachEvent) { + d.attachEvent("onreadystatechange", done); + w.attachEvent("onload", go); + var k = false; + try { + k = w.frameElement == null + } catch (j) { + } + if (b.doScroll && k) ie() + } else { + old = w.onload; + w.onload = function (e) { + old(e); + go() + } + } + } + } + + if (d.addEventListener) { + done = function () { + d.removeEventListener("DOMContentLoaded", done, false); + go() + } + } else { + if (d.attachEvent) { + done = function () { + if (d.readyState === "complete") { + d.detachEvent("onreadystatechange", done); + go() + } + } + } + } + + function ie() { + if (inited) return; + try { + b.doScroll("left") + } catch (j) { + setTimeout(ie, 1); + return + } + go() + } + + return function (callback) { + check(); + if (inited) { + callback.call(null) + } else { + queue.push(callback) + } + } + }(w, d); + + if (w.addtocalendar && typeof w.addtocalendar.start == "function") return; + if (!w.addtocalendar) w.addtocalendar = {}; + + addtocalendar.languages = { + 'de': 'In den Kalender', + 'en': 'Add to Calendar', + 'es': 'Añadir al Calendario', + 'fi': 'Lisää kalenteriin', + 'fr': 'Ajouter au calendrier', + 'hi': 'कैलेंडर में जोड़ें', + 'in': 'Tambahkan ke Kalender', + 'ja': 'カレンダーに追加', + 'ko': '캘린더에 추가', + 'pt': 'Adicionar ao calendário', + 'ru': 'Добавить в календарь', + 'sv': 'Lägg till i kalender', + 'uk': 'Додати в календар', + 'zh': '添加到日历', + 'no': 'Legg til i kalender' + }; + + addtocalendar.calendar_urls = {} + + addtocalendar.loadSettings = function (element) { + var settings = { + 'language': 'auto', + 'show-list-on': 'click', + 'calendars': [ + 'iCalendar', + 'Google Calendar', + 'Outlook', + 'Outlook Online', + 'Yahoo! Calendar' + ], + 'secure': 'auto', + 'on-button-click': function () { + }, + 'on-calendar-click': function () { + } + }; + + for (var option in settings) { + var pname = 'data-' + option; + var eattr = element.getAttribute(pname); + if (eattr != null) { + + if (isArray(settings[option])) { + settings[option] = eattr.replace(/\s*,\s*/g, ',').replace(/^\s+|\s+$/g, '').split(','); + continue; + } + + if (isFunc(settings[option])) { + var fn = window[eattr]; + if (isFunc(fn)) { + settings[option] = fn; + } else { + settings[option] = eval('(function(mouseEvent){' + eattr + '})'); + } + continue; + } + + settings[option] = element.getAttribute(pname); + } + } + + return settings; + }; + + addtocalendar.load = function () { + + var calendarsUrl = { + 'iCalendar': 'ical', + 'Google Calendar': 'google', + 'Outlook': 'outlook', + 'Outlook Online': 'outlookonline', + 'Yahoo! Calendar': 'yahoo' + }; + var utz = (-(new Date()).getTimezoneOffset().toString()); + + var languages = addtocalendar.languages; + + var dom = document.getElementsByTagName('*'); + for (var tagnum = 0; tagnum < dom.length; tagnum++) { + var tag_class = dom[tagnum].className; + + if (tag_class.length && tag_class.split(" ").indexOf('addtocalendar') != -1) { + + var settings = addtocalendar.loadSettings(dom[tagnum]); + + var protocol = 'http:'; + if (settings['secure'] == 'auto') { + protocol = location.protocol == 'https:' ? 'https:' : 'http:'; + } else if (settings['secure'] == 'true') { + protocol = 'https:'; + } + + var tag_id = dom[tagnum].id; + var atc_button_title = languages['en']; + if (settings['language'] == 'auto') { + var user_lang = "no_lang"; + if (typeof navigator.language === "string") { + user_lang = navigator.language.substr(0, 2) + } else if (typeof navigator.browserLanguage === "string") { + user_lang = navigator.browserLanguage.substr(0, 2) + } + + if (languages.hasOwnProperty(user_lang)) { + atc_button_title = languages[user_lang]; + } + } else if (languages.hasOwnProperty(settings['language'])) { + atc_button_title = languages[settings['language']]; + } + + var url_parameters = [ + 'utz=' + utz, + 'uln=' + navigator.language, + 'vjs=' + atc_version + ]; + + var addtocalendar_div = dom[tagnum].getElementsByTagName('var'); + var event_number = -1; + for (var varnum = 0; varnum < addtocalendar_div.length; varnum++) { + var param_name = addtocalendar_div[varnum].className.replace("atc_", "").split(" ")[0]; + var param_value = addtocalendar_div[varnum].innerHTML; + + if (param_name == 'event') { + event_number++; + continue; + } + + if (param_name == addtocalendar_div[varnum].className) { + if (param_name == 'atc-body') { + atc_button_title = param_value; + } + continue; + } + + if (event_number == -1) { + continue; + } + + url_parameters.push('e[' + event_number + '][' + param_name + ']' + '=' + encodeURIComponent(param_value)); + } + + + var atcb_link_id_val = (tag_id == '' ? '' : (tag_id + '_link') ); + var atcb_list = document.createElement('ul'); + atcb_list.className = 'atcb-list'; + + var menu_links = ''; + for (var cnum in settings['calendars']) { + if (!calendarsUrl.hasOwnProperty(settings['calendars'][cnum])) { + continue; + } + var cal_id = calendarsUrl[settings['calendars'][cnum]]; + var atcb_cal_link_id = (tag_id == '' ? '' : ('id="' + tag_id + '_' + cal_id + '_link"') ); + menu_links += '
  • ' + settings['calendars'][cnum] + '
  • '; + } + atcb_list.innerHTML = menu_links; + + var atcb_link; + if (dom[tagnum].querySelector('.atcb-link') == undefined) { + atcb_link = document.createElement('a'); + atcb_link.className = 'atcb-link'; + atcb_link.innerHTML = atc_button_title; + atcb_link.id = atcb_link_id_val; + atcb_link.tabIndex = 0; + + dom[tagnum].appendChild(atcb_link); + dom[tagnum].appendChild(atcb_list); + } else { + atcb_link = dom[tagnum].querySelector('.atcb-link'); + atcb_link.parentNode.appendChild(atcb_list); + atcb_link.tabIndex = 0; + if (atcb_link.id == '') { + atcb_link.id = atcb_link_id_val; + } + } + + if (atcb_link.addEventListener) { + atcb_link.addEventListener('click', settings['on-button-click'], false); + } else { + atcb_link.attachEvent('onclick', settings['on-button-click']); + } + + var item_links = dom[tagnum].querySelectorAll('atcb-item-link'); + + for (var varnum = 0; varnum < item_links.length; varnum++) { + var item_link = item_links[varnum]; + if (item_link.addEventListener) { + item_link.addEventListener('click', settings['on-calendar-click'], false); + }else{ + item_link.attachEvent('onclick', settings['on-calendar-click']); + } + + } + } + } + }; + addtocalendar.load(); +})(window, document); diff --git a/openy_system/assets/addtocalendar-master/addtocalendar.min.js b/openy_system/assets/addtocalendar-master/addtocalendar.min.js new file mode 100644 index 00000000..19b31ecb --- /dev/null +++ b/openy_system/assets/addtocalendar-master/addtocalendar.min.js @@ -0,0 +1,23 @@ +/* http://addtocalendar.com/ + * + * + * @license + The MIT License (MIT) + Copyright (c) 2015 AddToCalendar + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + */ +(function(w,d){var atc_url="//addtocalendar.com/atc/",atc_version="1.5";if(!Array.indexOf){Array.prototype.indexOf=function(obj){for(var i=0,l=this.length;i'+settings["calendars"][cnum]+""}atcb_list.innerHTML=menu_links;var atcb_link;if(dom[tagnum].querySelector(".atcb-link")==undefined){atcb_link=document.createElement("a");atcb_link.className="atcb-link";atcb_link.innerHTML=atc_button_title;atcb_link.id=atcb_link_id_val;atcb_link.tabIndex=0;dom[tagnum].appendChild(atcb_link);dom[tagnum].appendChild(atcb_list)}else{atcb_link=dom[tagnum].querySelector(".atcb-link");atcb_link.parentNode.appendChild(atcb_list);atcb_link.tabIndex=0;if(atcb_link.id==""){atcb_link.id=atcb_link_id_val}}if(atcb_link.addEventListener){atcb_link.addEventListener("click",settings["on-button-click"],false)}else{atcb_link.attachEvent("onclick",settings["on-button-click"])}var item_links=dom[tagnum].querySelectorAll("atcb-item-link");for(var varnum=0;varnum + + + + + + + + + + + + + 2014-05-04 12:00:00 + 2014-05-04 18:00:00 + Europe/London + Star Wars Day Party + May the force be with you + Tatooine + Luke Skywalker + luke@starwars.com + + + + diff --git a/openy_system/assets/addtocalendar-styles-master/README.md b/openy_system/assets/addtocalendar-styles-master/README.md new file mode 100644 index 00000000..242c3424 --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/README.md @@ -0,0 +1,24 @@ +AddToCalendar styles library +==================== + +Any folder contains CSS file, resources and demo.html. Feel free add your own styles with pull request. + +AddToCalendar +============= + +AddToCalendar — free customizable JavaScript widget "Add to Calendar" for event page. It allows users to easily schedule the event in their calendar. + +The widget uses fast (HTTP/2) and secure (SSL A+ grade from SSL Labs) server of https://addtocalendar.com service. By default the widget adds small link to the service on the bottom of event and you can ask support@addtocalendar.com for changes. + +Install from NPM +================ +``` +$ npm install addtocalendar +``` + +Install from Bower +================ +``` +$ npm install -g bower +$ bower install addtocalendar +``` diff --git a/openy_system/assets/addtocalendar-styles-master/atc-base/atc-base.css b/openy_system/assets/addtocalendar-styles-master/atc-base/atc-base.css new file mode 100644 index 00000000..c576be7d --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-base/atc-base.css @@ -0,0 +1,66 @@ +/** + * AddToCalendar Base CSS + * http://addtocalendar.com + */ + +/* Base */ + +.addtocalendar var{ + display: none; +} + +.addtocalendar { + position: relative; + display: inline-block; + background: transparent!important; +} + +.atcb-link { + display: block; + cursor: pointer; +} + +.atcb-link:focus~ul, +.atcb-link:active~ul, +.atcb-list:hover{ + visibility:visible; +} + +.atcb-list { + visibility: hidden; + position: absolute; + top: 100%; + left: 0; + width: 170px; + z-index: 900; +} + +.atcb-list, +.atcb-item +{ + list-style: none; + margin: 0; + padding: 0; + background: #fff; +} + +.atcb-item { + float: none; + text-align: left; +} + +.atcb-item-link +{ + text-decoration: none; + display: block; +} + +.atcb-item.hover, +.atcb-item:hover { + position: relative; + z-index: 900; + cursor: pointer; + text-decoration: none; +} + + diff --git a/openy_system/assets/addtocalendar-styles-master/atc-base/demo.html b/openy_system/assets/addtocalendar-styles-master/atc-base/demo.html new file mode 100644 index 00000000..b13957ab --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-base/demo.html @@ -0,0 +1,43 @@ + + + + + + + + + + +

    + Style atc-base.css is the core for any other styles. Example below. +

    + +

    + + + + 2014-05-04 12:00:00 + 2014-05-04 18:00:00 + Europe/London + Star Wars Day Party + May the force be with you + Tatooine + Luke Skywalker + luke@starwars.com + + +

    + + \ No newline at end of file diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-blue/atc-style-blue.css b/openy_system/assets/addtocalendar-styles-master/atc-style-blue/atc-style-blue.css new file mode 100644 index 00000000..1f6ed103 --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-blue/atc-style-blue.css @@ -0,0 +1,138 @@ +/** + * AddToCalendar style Blue + * http://addtocalendar.com + */ + +/* Base */ + +.addtocalendar var{ + display: none; +} + +.addtocalendar { + position: relative; + display: inline-block; + background: transparent!important; +} + +.atcb-link { + display: block; + outline: none!important; + cursor: pointer; +} + +.atcb-link:focus~ul, +.atcb-link:active~ul, +.atcb-list:hover{ + visibility:visible; +} + +.atcb-list { + visibility: hidden; + position: absolute; + top: 100%; + left: 0; + width: 170px; + z-index: 900; +} + +.atcb-list, +.atcb-item +{ + list-style: none; + margin: 0; + padding: 0; + background: #fff; +} + +.atcb-item { + float: none; + text-align: left; +} + +.atcb-item-link +{ + text-decoration: none; + outline: none; + display: block; +} + +.atcb-item.hover, +.atcb-item:hover { + position: relative; + z-index: 900; + cursor: pointer; + text-decoration: none; + outline: none; +} + + +/* Blue */ + +.atc-style-blue .atcb-link, +.atc-style-blue .atcb-link:hover, +.atc-style-blue .atcb-link:active, +.atc-style-blue .atcb-link:focus +{ + margin: 0; + padding: 7px 25px; + color: #fff; + font-family: "Verdana"; + font-size: 14px; + text-decoration: none; + outline: none; + line-height: 20px; + vertical-align: middle; + background: rgb(66,129,244); + box-shadow: 0 0 40px rgba(0, 0, 0, .13) inset; + border-radius: 4px; + zoom: 1; +} + +.atc-style-blue .atcb-list { + width: 170px; + border: 1px solid rgb(186,186,186); + border-radius: 2px; + box-shadow: 0 0 5px #AAA; +} + +.atc-style-blue .atcb-list, +.atc-style-blue .atcb-item +{ + background: #fff; + color: #000; +} + +.atc-style-blue .atcb-item, +.atc-style-blue .atcb-item-link +{ + line-height: 1.3em; + vertical-align: middle; + zoom: 1; +} + +.atc-style-blue .atcb-item-link, +.atc-style-blue .atcb-item-link:hover, +.atc-style-blue .atcb-item-link:active, +.atc-style-blue .atcb-item-link:focus +{ + color: #000; + font-family: "Verdana"; + font-size: 14px; + text-decoration: none; + outline: none; + padding: 5px 15px; +} + +.atc-style-blue .atcb-item-link:hover, +.atc-style-blue .atcb-item-link:active, +.atc-style-blue .atcb-item-link:focus +{ + color: #fff; +} + +.atc-style-blue .atcb-item.hover, +.atc-style-blue .atcb-item:hover { + background: rgb(66,129,244); +} + diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-blue/demo.html b/openy_system/assets/addtocalendar-styles-master/atc-style-blue/demo.html new file mode 100644 index 00000000..79808c7e --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-blue/demo.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + 2014-05-04 12:00:00 + 2014-05-04 18:00:00 + Europe/London + Star Wars Day Party + May the force be with you + Tatooine + Luke Skywalker + luke@starwars.com + + + + \ No newline at end of file diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-button-icon/atc-style-button-icon.css b/openy_system/assets/addtocalendar-styles-master/atc-style-button-icon/atc-style-button-icon.css new file mode 100644 index 00000000..0246d7e0 --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-button-icon/atc-style-button-icon.css @@ -0,0 +1,80 @@ +/** + * AddToCalendar style Icon + * http://addtocalendar.com + */ + +/* Base */ + +.addtocalendar var{ + display: none; +} + +.addtocalendar { + position: relative; + display: inline-block; + background: transparent!important; +} + +.atcb-link { + display: block; + outline: none!important; + cursor: pointer; +} + +.atcb-link:focus~ul, +.atcb-link:active~ul, +.atcb-list:hover{ + visibility:visible; +} + +.atcb-list { + visibility: hidden; + position: absolute; + top: 100%; + left: 0; + width: 170px; + z-index: 900; +} + +.atcb-list, +.atcb-item +{ + list-style: none; + margin: 0; + padding: 0; + background: #fff; +} + +.atcb-item { + float: none; + text-align: left; +} + +.atcb-item-link +{ + text-decoration: none; + outline: none; + display: block; +} + +.atcb-item.hover, +.atcb-item:hover { + position: relative; + z-index: 900; + cursor: pointer; + text-decoration: none; + outline: none; +} + + +/* Icon */ + +.atc-style-button-icon .atcb-link, +.atc-style-button-icon .atcb-link:hover, +.atc-style-button-icon .atcb-link:active, +.atc-style-button-icon .atcb-link:focus +{ + text-decoration: none; + outline: none; + padding: 2px 2px; +} \ No newline at end of file diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-button-icon/demo.html b/openy_system/assets/addtocalendar-styles-master/atc-style-button-icon/demo.html new file mode 100644 index 00000000..9174ed61 --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-button-icon/demo.html @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + 2014-05-04 12:00:00 + 2014-05-04 18:00:00 + Europe/London + Star Wars Day Party + May the force be with you + Tatooine + Luke Skywalker + luke@starwars.com + + + + \ No newline at end of file diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-button-icon/icon.png b/openy_system/assets/addtocalendar-styles-master/atc-style-button-icon/icon.png new file mode 100644 index 00000000..63b60d5f Binary files /dev/null and b/openy_system/assets/addtocalendar-styles-master/atc-style-button-icon/icon.png differ diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-glow-orange/atc-style-glow-orange.css b/openy_system/assets/addtocalendar-styles-master/atc-style-glow-orange/atc-style-glow-orange.css new file mode 100644 index 00000000..85fb2205 --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-glow-orange/atc-style-glow-orange.css @@ -0,0 +1,175 @@ +/** + * AddToCalendar style Glow Orange + * http://addtocalendar.com + */ + +/* Base */ + +.addtocalendar var{ + display: none; +} + +.addtocalendar { + position: relative; + display: inline-block; + background: transparent!important; +} + +.atcb-link { + display: block; + outline: none!important; + cursor: pointer; +} + +.atcb-link:focus~ul, +.atcb-link:active~ul, +.atcb-list:hover{ + visibility:visible; +} + +.atcb-list { + visibility: hidden; + position: absolute; + top: 100%; + left: 0; + width: 170px; + z-index: 900; +} + +.atcb-list, +.atcb-item +{ + list-style: none; + margin: 0; + padding: 0; + background: #fff; +} + +.atcb-item { + float: none; + text-align: left; +} + +.atcb-item-link +{ + text-decoration: none; + outline: none; + display: block; +} + +.atcb-item.hover, +.atcb-item:hover { + position: relative; + z-index: 900; + cursor: pointer; + text-decoration: none; + outline: none; +} + + +/* Orange */ + +.atc-style-glow-orange .atcb-list{ + margin: 10px 0px 0px 0px; + padding: 0; + color: #fff; + line-height: 1.3em; + vertical-align: middle; + zoom: 1; + border-radius: 4px; +} + +.atc-style-glow-orange .atcb-link +{ + position: relative; + color: rgba(255,255,255,1); + text-decoration: none; + background-color: rgba(219,87,5,1); + font-size: 1em; + display: block; + padding: 4px; + -webkit-border-radius: 8px; + -moz-border-radius: 8px; + border-radius: 8px; + -webkit-box-shadow: 0px 9px 0px rgba(219,31,5,1), 0px 9px 12px rgba(0,0,0,.7); + -moz-box-shadow: 0px 9px 0px rgba(219,31,5,1), 0px 9px 12px rgba(0,0,0,.7); + box-shadow: 0px 9px 0px rgba(219,31,5,1), 0px 9px 12px rgba(0,0,0,.7); + text-align: center; + -webkit-transition: all .1s ease; + -moz-transition: all .1s ease; + -ms-transition: all .1s ease; + -o-transition: all .1s ease; + transition: all .1s ease; +} + +.atc-style-glow-orange .atcb-link:active { + -webkit-box-shadow: 0px 3px 0px rgba(219,31,5,1), 0px 3px 6px rgba(0,0,0,.9); + -moz-box-shadow: 0px 3px 0px rgba(219,31,5,1), 0px 3px 6px rgba(0,0,0,.9); + box-shadow: 0px 3px 0px rgba(219,31,5,1), 0px 3px 6px rgba(0,0,0,.9); + position: relative; + top: 6px; +} + +.atc-style-glow-orange .atcb-link, +.atc-style-glow-orange .atcb-link:hover, +.atc-style-glow-orange .atcb-link:active, +.atc-style-glow-orange .atcb-link:focus +{ + color: #fff; + font-family: "Verdana"; + font-size: 14px; + text-decoration: none; + outline: none; + padding: 7px 25px; +} + +.atc-style-glow-orange .atcb-list { + width: 170px; + border: 1px solid #fff; + border: 1px solid rgb(186,186,186); + border-radius: 2px; + box-shadow: 0 0 5px #AAA; +} + +.atc-style-glow-orange .atcb-list, +.atc-style-glow-orange .atcb-item +{ + background: #fff; + color: #000; + +} + +.atc-style-glow-orange .atcb-item, +.atc-style-glow-orange .atcb-item-link +{ + line-height: 1.3em; + vertical-align: middle; + zoom: 1; +} + +.atc-style-glow-orange .atcb-item-link, +.atc-style-glow-orange .atcb-item-link:hover, +.atc-style-glow-orange .atcb-item-link:active, +.atc-style-glow-orange .atcb-item-link:focus +{ + color: #000; + font-family: "Verdana"; + font-size: 14px; + text-decoration: none; + outline: none; + padding: 5px 15px; +} + +.atc-style-glow-orange .atcb-item-link:hover, +.atc-style-glow-orange .atcb-item-link:active, +.atc-style-glow-orange .atcb-item-link:focus +{ + color: #fff; + background: rgba(219,87,5,1); +} + +.atc-style-glow-orange .atcb-item.hover, +.atc-style-glow-orange .atcb-item:hover { + background: rgba(250,203,175,1); +} + diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-glow-orange/demo.html b/openy_system/assets/addtocalendar-styles-master/atc-style-glow-orange/demo.html new file mode 100644 index 00000000..d40e0412 --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-glow-orange/demo.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + 2014-05-04 12:00:00 + 2014-05-04 18:00:00 + Europe/London + Star Wars Day Party + May the force be with you + Tatooine + Luke Skywalker + luke@starwars.com + + + + \ No newline at end of file diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-light-blue/atc-style-light-blue.css b/openy_system/assets/addtocalendar-styles-master/atc-style-light-blue/atc-style-light-blue.css new file mode 100644 index 00000000..f061edcc --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-light-blue/atc-style-light-blue.css @@ -0,0 +1,138 @@ +/** + * AddToCalendar style Blue + * http://addtocalendar.com + */ + +/* Base */ + +.addtocalendar var{ + display: none; +} + +.addtocalendar { + position: relative; + display: inline-block; + background: transparent!important; +} + +.atcb-link { + display: block; + outline: none!important; + cursor: pointer; +} + +.atcb-link:focus~ul, +.atcb-link:active~ul, +.atcb-list:hover{ + visibility:visible; +} + +.atcb-list { + visibility: hidden; + position: absolute; + top: 100%; + left: 0; + width: 170px; + z-index: 900; +} + +.atcb-list, +.atcb-item +{ + list-style: none; + margin: 0; + padding: 0; + background: #fff; +} + +.atcb-item { + float: none; + text-align: left; +} + +.atcb-item-link +{ + text-decoration: none; + outline: none; + display: block; +} + +.atcb-item.hover, +.atcb-item:hover { + position: relative; + z-index: 900; + cursor: pointer; + text-decoration: none; + outline: none; +} + + +/* Blue */ + +.atc-style-blue .atcb-link, +.atc-style-blue .atcb-link:hover, +.atc-style-blue .atcb-link:active, +.atc-style-blue .atcb-link:focus +{ + margin: 0; + padding: 3px 12px; + color: #fff; + font-family: "Helvetica"; + font-size: 14px; + text-decoration: none; + outline: none; + line-height: 20px; + vertical-align: middle; + background: rgb(45,189,239); + box-shadow: 0 0 40px rgba(0, 0, 0, .13) inset; + border-radius: 4px; + zoom: 1; +} + +.atc-style-blue .atcb-list { + width: 170px; + border: 1px solid rgb(186,186,186); + border-radius: 2px; + box-shadow: 0 0 5px #AAA; +} + +.atc-style-blue .atcb-list, +.atc-style-blue .atcb-item +{ + background: #fff; + color: #000; +} + +.atc-style-blue .atcb-item, +.atc-style-blue .atcb-item-link +{ + line-height: 1.3em; + vertical-align: middle; + zoom: 1; +} + +.atc-style-blue .atcb-item-link, +.atc-style-blue .atcb-item-link:hover, +.atc-style-blue .atcb-item-link:active, +.atc-style-blue .atcb-item-link:focus +{ + color: #000; + font-family: "Verdana"; + font-size: 14px; + text-decoration: none; + outline: none; + padding: 5px 15px; +} + +.atc-style-blue .atcb-item-link:hover, +.atc-style-blue .atcb-item-link:active, +.atc-style-blue .atcb-item-link:focus +{ + color: #fff; +} + +.atc-style-blue .atcb-item.hover, +.atc-style-blue .atcb-item:hover { + background: rgb(45,189,239); +} + diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-light-blue/demo.html b/openy_system/assets/addtocalendar-styles-master/atc-style-light-blue/demo.html new file mode 100644 index 00000000..8fb0ef69 --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-light-blue/demo.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + 2014-05-04 12:00:00 + 2014-05-04 18:00:00 + Europe/London + Star Wars Day Party + May the force be with you + Tatooine + Luke Skywalker + luke@starwars.com + + + + \ No newline at end of file diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-menu-wb/atc-style-menu-wb.css b/openy_system/assets/addtocalendar-styles-master/atc-style-menu-wb/atc-style-menu-wb.css new file mode 100644 index 00000000..e707029a --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-menu-wb/atc-style-menu-wb.css @@ -0,0 +1,118 @@ +/** + * AddToCalendar White Blue Menu Style + * http://addtocalendar.com + */ + +/* Base */ + +.addtocalendar var{ + display: none; +} + +.addtocalendar { + position: relative; + display: inline-block; + background: transparent!important; +} + +.atcb-link { + display: block; + outline: none!important; + cursor: pointer; +} + +.atcb-link:focus~ul, +.atcb-link:active~ul, +.atcb-list:hover{ + visibility:visible; +} + +.atcb-list { + visibility: hidden; + position: absolute; + top: 100%; + left: 0; + width: 170px; + z-index: 900; +} + +.atcb-list, +.atcb-item +{ + list-style: none; + margin: 0; + padding: 0; + background: #fff; +} + +.atcb-item { + float: none; + text-align: left; +} + +.atcb-item-link +{ + text-decoration: none; + outline: none; + display: block; +} + +.atcb-item.hover, +.atcb-item:hover { + position: relative; + z-index: 900; + cursor: pointer; + text-decoration: none; + outline: none; +} + + +/* Menu WB */ + +.atc-style-menu-wb .atcb-list { + width: 170px; + border: 1px solid rgb(186,186,186); + border-radius: 2px; + box-shadow: 0 0 5px #AAA; +} + +.atc-style-menu-wb .atcb-list, +.atc-style-menu-wb .atcb-item +{ + background: #fff; + color: #000; +} + +.atc-style-menu-wb .atcb-item, +.atc-style-menu-wb .atcb-item-link +{ + line-height: 1.3em; + vertical-align: middle; + zoom: 1; +} + +.atc-style-menu-wb .atcb-item-link, +.atc-style-menu-wb .atcb-item-link:hover, +.atc-style-menu-wb .atcb-item-link:active, +.atc-style-menu-wb .atcb-item-link:focus +{ + color: #000; + font-family: "Verdana"; + font-size: 14px; + text-decoration: none; + outline: none; + padding: 5px 15px; +} + +.atc-style-menu-wb .atcb-item-link:hover, +.atc-style-menu-wb .atcb-item-link:active, +.atc-style-menu-wb .atcb-item-link:focus +{ + color: #fff; +} + +.atc-style-menu-wb .atcb-item.hover, +.atc-style-menu-wb .atcb-item:hover { + background: rgb(66,129,244); +} + diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-menu-wb/demo.html b/openy_system/assets/addtocalendar-styles-master/atc-style-menu-wb/demo.html new file mode 100644 index 00000000..970b1846 --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-menu-wb/demo.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + 2014-05-04 12:00:00 + 2014-05-04 18:00:00 + Europe/London + Star Wars Day Party + May the force be with you + Tatooine + Luke Skywalker + luke@starwars.com + + + + \ No newline at end of file diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-modern-gray/atc-style-moder-gray.css b/openy_system/assets/addtocalendar-styles-master/atc-style-modern-gray/atc-style-moder-gray.css new file mode 100644 index 00000000..7ed18d14 --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-modern-gray/atc-style-moder-gray.css @@ -0,0 +1,143 @@ +/** + * AddToCalendar Modern Gray Style + * http://addtocalendar.com + */ + +/* Base */ + +.addtocalendar var{ + display: none; +} +.add-calendar{ + position: relative; +} +.addtocalendar { + display: inline-block; + background: transparent!important; + position: relative; +} + +.atcb-link { + display: block; + outline: none!important; + cursor: pointer; +} + +.atcb-link:focus~ul, +.atcb-link:active~ul, +.atcb-list:hover{ + visibility:visible; +} + +.atcb-list { + visibility: hidden; + position: absolute; + top: 100%; + left: 0; + width: 192px; + z-index: 900; +} +.footer .atcb-list{ + top: -152px; +} +.atcb-list, +.atcb-item +{ + list-style: none; + margin: 0; + padding: 0; + background: #fff; +} + +.atcb-item { + float: none; + text-align: left; +} + +.atcb-item-link +{ + text-decoration: none; + outline: none; + display: block; +} + +.atcb-item.hover, +.atcb-item:hover { + position: relative; + z-index: 900; + cursor: pointer; + text-decoration: none; + outline: none; +} + + +/* Modern Gray */ + +.atc-style-moder-gray .atcb-link +{ + margin: 0; + display: block; + width: 167px; + height: 25px; + padding: 3px 0 0 29px; + font-size: 12px; + line-height: 25px; + letter-spacing: 0.25px; + text-align: center; + text-decoration: none; + color: #fff; + background: url(bg-btn-calendar.png) no-repeat top left; + outline:none; + zoom: 1; +} +.atc-style-moder-gray .atcb-link:hover, +.atc-style-moder-gray .atcb-link:active, +.atc-style-moder-gray .atcb-link:focus +{ + background-position:0 -28px; +} +.atc-style-moder-gray .atcb-list { + width: 196px; + border: 1px solid #ebebeb; + border-radius: 2px; + height: 150px; +} + +.atc-style-moder-gray .atcb-list, +.atc-style-moder-gray .atcb-item +{ + background: #fff; + color: #1d2326; +} + +.atc-style-moder-gray .atcb-item, +.atc-style-moder-gray .atcb-item-link +{ + vertical-align: middle; + zoom: 1; +} + +.atc-style-moder-gray .atcb-item-link, +.atc-style-moder-gray .atcb-item-link:hover, +.atc-style-moder-gray .atcb-item-link:active, +.atc-style-moder-gray .atcb-item-link:focus +{ + font-size: 12px; + letter-spacing:0.25px; + text-decoration: none; + outline: none; + padding: 5px 15px; + color:#1d2326; +} + +.atc-style-moder-gray .atcb-item-link:hover, +.atc-style-moder-gray .atcb-item-link:active, +.atc-style-moder-gray .atcb-item-link:focus +{ + color: #fff; +} + +.atc-style-moder-gray .atcb-item.hover, +.atc-style-moder-gray .atcb-item:hover { + background: #39506f; +} \ No newline at end of file diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-modern-gray/bg-btn-calendar.png b/openy_system/assets/addtocalendar-styles-master/atc-style-modern-gray/bg-btn-calendar.png new file mode 100644 index 00000000..bfd17b6b Binary files /dev/null and b/openy_system/assets/addtocalendar-styles-master/atc-style-modern-gray/bg-btn-calendar.png differ diff --git a/openy_system/assets/addtocalendar-styles-master/atc-style-modern-gray/demo.html b/openy_system/assets/addtocalendar-styles-master/atc-style-modern-gray/demo.html new file mode 100644 index 00000000..734f90e9 --- /dev/null +++ b/openy_system/assets/addtocalendar-styles-master/atc-style-modern-gray/demo.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + 2014-05-04 12:00:00 + 2014-05-04 18:00:00 + Europe/London + Star Wars Day Party + May the force be with you + Tatooine + Luke Skywalker + luke@starwars.com + + + + \ No newline at end of file diff --git a/openy_system/assets/js/atc-fix.js b/openy_system/assets/js/atc-fix.js new file mode 100644 index 00000000..5b40d128 --- /dev/null +++ b/openy_system/assets/js/atc-fix.js @@ -0,0 +1,39 @@ +/** + * @file + * Accessibility fixes for AddToCalendar JS. + */ + +(function ($) { + "use strict"; + + Drupal.behaviors.atcFix = { + attach: function (context, settings) { + once('addtocalendar', $('.addtocalendar')).forEach(function (el) { + $(el).find('.atcb-link').attr('tabindex','0'); + $(el).on('keydown', function(e) { + // Trigger click behavior on the RETURN key, like regular links. + if (e.which == 13) { + el.click(); + } + }); + $(el).click(function () { + if ($(this).hasClass('activated')) { + $(this).removeClass('activated'); + $(this).find('.atcb-list').css({ + 'display': 'none', + 'visibility': 'hidden' + }); + } + else { + $(this).addClass('activated'); + $(this).find('.atcb-list').css({ + 'display': 'block', + 'visibility': 'visible' + }); + } + }); + }); + } + }; + +})(jQuery); diff --git a/openy_system/openy_system.libraries.yml b/openy_system/openy_system.libraries.yml index 365c4c17..75f4ceb4 100644 --- a/openy_system/openy_system.libraries.yml +++ b/openy_system/openy_system.libraries.yml @@ -8,6 +8,15 @@ addtocal: js: assets/js/atc.js: {} +atc_base: + version: 1.5.3 + css: + component: + 'assets/addtocalendar-styles-master/atc-base/atc-base.css': {} + js: + 'assets/addtocalendar-master/addtocalendar.min.js': { minified: true } + 'assets/js/atc-fix.js': {} + vue: version: 2.6.11 js: