Skip to content
Snippets Groups Projects
Commit 10275773 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Revert "Wir benutzen kein Font-Awesome mehr"

This reverts commit ba3f4179
parent f02adffd
No related branches found
No related tags found
3 merge requests!868Development,!866Resolve "Font awesome wird im IE11 nicht angezeigt.",!865Revert "Wir benutzen kein Font-Awesome mehr"
Showing
with 6073 additions and 153 deletions
...@@ -90,7 +90,7 @@ function popovers () { ...@@ -90,7 +90,7 @@ function popovers () {
$(this).popover('destroy') $(this).popover('destroy')
$(this).popover({ $(this).popover({
// html : true, // html : true,
// title : "<span class="glyphicon glyphicon-cog"></span> Optionen", // title : "<i class="fa fa-cog" aria-hidden="true"></i> Optionen",
content: $(this).parent().find('.content').html() content: $(this).parent().find('.content').html()
}) })
}) })
...@@ -229,8 +229,9 @@ function productWidget () { ...@@ -229,8 +229,9 @@ function productWidget () {
easing: 'cubic-bezier(0.25, 0, 0.25, 1)', easing: 'cubic-bezier(0.25, 0, 0.25, 1)',
speed: 600, speed: 600,
pager: false, pager: false,
prevHtml: '<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span><span class="sr-only">Previous</span>', prevHtml: '<i class="fa fa-chevron-left" aria-hidden="true"></i><span class="sr-only">Previous</span>',
nextHtml: '<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span><span class="sr-only">Next</span>', nextHtml: '<i class="fa fa-chevron-right" aria-hidden="true"></i><span class="sr-only">Next</span>',
responsive: [{
breakpoint: 1400, breakpoint: 1400,
settings: { settings: {
item: 4, item: 4,
...@@ -272,8 +273,8 @@ function productWidget () { ...@@ -272,8 +273,8 @@ function productWidget () {
pager: false, pager: false,
enableTouch: false, enableTouch: false,
enableDrag: false, enableDrag: false,
prevHtml: '<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span><span class="sr-only">Previous</span>', prevHtml: '<i class="fa fa-chevron-left" aria-hidden="true"></i><span class="sr-only">Previous</span>',
nextHtml: '<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span><span class="sr-only">Next</span>', nextHtml: '<i class="fa fa-chevron-right" aria-hidden="true"></i><span class="sr-only">Next</span>',
responsive: [{ responsive: [{
breakpoint: 1400, breakpoint: 1400,
settings: { settings: {
...@@ -331,14 +332,14 @@ function createCustomFocuses () { ...@@ -331,14 +332,14 @@ function createCustomFocuses () {
* @if( $metager->getFokus() === "produktsuche" ) * @if( $metager->getFokus() === "produktsuche" )
* <li id="produktsucheTabSelector" class="active tab-selector" role="presentation" data-loaded="1"> * <li id="produktsucheTabSelector" class="active tab-selector" role="presentation" data-loaded="1">
* <a aria-controls="produktsuche" data-href="#produktsuche" href="#produktsuche"> * <a aria-controls="produktsuche" data-href="#produktsuche" href="#produktsuche">
* <span class='glyphicon glyphicon-shopping-cart'></span> * <i class="fa fa-shopping-cart" aria-hidden="true"></i>
* <span class="hidden-xs">{{ trans('index.foki.produkte') }}</span> * <span class="hidden-xs">{{ trans('index.foki.produkte') }}</span>
* </a> * </a>
* </li> * </li>
* @else * @else
* <li id="produktsucheTabSelector" class="tab-selector" role="presentation" data-loaded="0"> * <li id="produktsucheTabSelector" class="tab-selector" role="presentation" data-loaded="0">
* <a aria-controls="produktsuche" data-href="{!! $metager->generateSearchLink('produktsuche') !!}" href="{!! $metager->generateSearchLink('produktsuche', false) !!}"> * <a aria-controls="produktsuche" data-href="{!! $metager->generateSearchLink('produktsuche') !!}" href="{!! $metager->generateSearchLink('produktsuche', false) !!}">
* <span class='glyphicon glyphicon-shopping-cart'></span> * <i class="fa fa-shopping-cart" aria-hidden="true"></i>
* <span class="hidden-xs">{{ trans('index.foki.produkte') }}</span> * <span class="hidden-xs">{{ trans('index.foki.produkte') }}</span>
* </a> * </a>
* </li> * </li>
...@@ -366,9 +367,10 @@ function addFocus (focus, active = false) { ...@@ -366,9 +367,10 @@ function addFocus (focus, active = false) {
focusElementLink.setAttribute('data-href', searchLink) focusElementLink.setAttribute('data-href', searchLink)
focusElementLink.setAttribute('href', searchLink) focusElementLink.setAttribute('href', searchLink)
// create <a> icon // create <a> icon
var focusElementIcon = document.createElement('span') var focusElementIcon = document.createElement('i')
focusElementIcon.classList.add('glyphicon') focusElementIcon.classList.add('fa')
focusElementIcon.classList.add('glyphicon-cog') focusElementIcon.classList.add('fa-cog')
focusElementIcon.setAttribute('aria-hidden', 'true')
// create <span> focusname // create <span> focusname
var focusElementName = document.createElement('span') var focusElementName = document.createElement('span')
focusElementName.classList.add('hidden-xs') focusElementName.classList.add('hidden-xs')
......
...@@ -74,13 +74,13 @@ function setSettings () { ...@@ -74,13 +74,13 @@ function setSettings () {
$('input[name=eingabe]').attr('autocomplete', value) $('input[name=eingabe]').attr('autocomplete', value)
} }
if ($('fieldset#foki.mobile').length) { if ($('fieldset#foki.mobile').length) {
$('fieldset.mobile input#bilder').val('angepasst'); $('fieldset.mobile input#bilder').val('angepasst')
$('fieldset.mobile input#bilder').prop('checked', true); $('fieldset.mobile input#bilder').prop('checked', true)
$('fieldset.mobile input#bilder').attr('id', 'angepasst'); $('fieldset.mobile input#bilder').attr('id', 'angepasst')
$('fieldset.mobile label#bilder-label').attr('id', 'anpassen-label'); $('fieldset.mobile label#bilder-label').attr('id', 'anpassen-label')
$('fieldset.mobile label#anpassen-label').attr('for', 'angepasst'); $('fieldset.mobile label#anpassen-label').attr('for', 'angepasst')
$("fieldset.mobile label#anpassen-label span.glyphicon").attr("class", "glyphicon glyphicon-cog"); $('fieldset.mobile label#anpassen-label a.fa').attr('class', 'fa fa-cog')
$('fieldset.mobile label#anpassen-label span.content').html('angepasst'); $('fieldset.mobile label#anpassen-label span.content').html('angepasst')
} }
} }
// Polyfill for form attribute // Polyfill for form attribute
...@@ -89,11 +89,11 @@ function setSettings () { ...@@ -89,11 +89,11 @@ function setSettings () {
* polyfill for html5 form attr * polyfill for html5 form attr
*/ */
// detect if browser supports this // detect if browser supports this
var sampleElement = $('[form]').get(0); var sampleElement = $('[form]').get(0)
var isIE11 = !(window.ActiveXObject) && 'ActiveXObject' in window; var isIE11 = !(window.ActiveXObject) && 'ActiveXObject' in window
if (sampleElement && window.HTMLFormElement && sampleElement.form instanceof HTMLFormElement && !isIE11) { if (sampleElement && window.HTMLFormElement && sampleElement.form instanceof HTMLFormElement && !isIE11) {
// browser supports it, no need to fix // browser supports it, no need to fix
return; return
} }
/** /**
* Append a field to a form * Append a field to a form
...@@ -101,44 +101,44 @@ function setSettings () { ...@@ -101,44 +101,44 @@ function setSettings () {
*/ */
$.fn.appendField = function (data) { $.fn.appendField = function (data) {
// for form only // for form only
if (!this.is('form')) return; if (!this.is('form')) return
// wrap data // wrap data
if (!$.isArray(data) && data.name && data.value) { if (!$.isArray(data) && data.name && data.value) {
data = [data]; data = [data]
} }
var $form = this; var $form = this
// attach new params // attach new params
$.each(data, function (i, item) { $.each(data, function (i, item) {
$('<input/>').attr('type', 'hidden').attr('name', item.name).val(item.value).appendTo($form); $('<input/>').attr('type', 'hidden').attr('name', item.name).val(item.value).appendTo($form)
}) })
return $form; return $form
} }
/** /**
* Find all input fields with form attribute point to jQuery object * Find all input fields with form attribute point to jQuery object
* *
*/ */
$('form[id]').submit(function (e) { $('form[id]').submit(function (e) {
var $form = $(this); var $form = $(this)
// serialize data // serialize data
var data = $('[form=' + $form.attr('id') + ']').serializeArray(); var data = $('[form=' + $form.attr('id') + ']').serializeArray()
// append data to form // append data to form
$form.appendField(data); $form.appendField(data)
}).each(function () { }).each(function () {
var form = this; var form = this,
$form = $(form); $form = $(form),
$fields = $('[form=' + $form.attr('id') + ']'); $fields = $('[form=' + $form.attr('id') + ']')
$fields.filter('button, input').filter('[type=reset],[type=submit]').click(function () { $fields.filter('button, input').filter('[type=reset],[type=submit]').click(function () {
var type = this.type.toLowerCase(); var type = this.type.toLowerCase()
if (type === 'reset') { if (type === 'reset') {
// reset form // reset form
form.reset(); form.reset()
// for elements outside form // for elements outside form
$fields.each(function () { $fields.each(function () {
this.value = this.defaultValue; this.value = this.defaultValue
this.checked = this.defaultChecked; this.checked = this.defaultChecked
}).filter('select').each(function () { }).filter('select').each(function () {
$(this).find('option').each(function () { $(this).find('option').each(function () {
this.selected = this.defaultSelected; this.selected = this.defaultSelected
}) })
}) })
} else if (type.match(/^submit|image$/i)) { } else if (type.match(/^submit|image$/i)) {
...@@ -151,27 +151,27 @@ function setSettings () { ...@@ -151,27 +151,27 @@ function setSettings () {
}) })
})(jQuery) })(jQuery)
// Opera 8.0+ // Opera 8.0+
var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0
// Firefox 1.0+ // Firefox 1.0+
var isFirefox = typeof InstallTrigger !== 'undefined'; var isFirefox = typeof InstallTrigger !== 'undefined'
// At least Safari 3+: "[object HTMLElementConstructor]" // At least Safari 3+: "[object HTMLElementConstructor]"
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0
// Internet Explorer 6-11 // Internet Explorer 6-11
var isIE = /*@cc_on!@*/ false || !!document.documentMode; var isIE = /*@cc_on!@*/ false || !!document.documentMode
// Edge 20+ // Edge 20+
var isEdge = !isIE && !!window.StyleMedia; var isEdge = !isIE && !!window.StyleMedia
// Chrome 1+ // Chrome 1+
var isChrome = !!window.chrome && !!window.chrome.webstore; var isChrome = !!window.chrome && !!window.chrome.webstore
// Blink engine detection // Blink engine detection
var isBlink = (isChrome || isOpera) && !!window.CSS; var isBlink = (isChrome || isOpera) && !!window.CSS
// Prüft, ob der URL-Parameter "usage" auf "once" gesetzt ist. // Prüft, ob der URL-Parameter "usage" auf "once" gesetzt ist.
function isUseOnce () { function isUseOnce () {
var url = document.location.search; var url = document.location.search
var pos = url.indexOf('usage='); var pos = url.indexOf('usage=')
if (pos >= 0 && url.substring(pos + 6, pos + 11) == 'once') { if (pos >= 0 && url.substring(pos + 6, pos + 11) == 'once') {
return true; return true
} else { } else {
return false; return false
} }
} }
/** /**
...@@ -180,8 +180,8 @@ function isUseOnce () { ...@@ -180,8 +180,8 @@ function isUseOnce () {
function loadInitialCustomFocuses () { function loadInitialCustomFocuses () {
for (var key in localStorage) { for (var key in localStorage) {
if (key.startsWith('focus_')) { if (key.startsWith('focus_')) {
var focus = loadFocusById(key); var focus = loadFocusById(key)
addFocus(focus.name); addFocus(focus.name)
} }
} }
} }
...@@ -193,24 +193,24 @@ function showFocusCreateDialog (id) { ...@@ -193,24 +193,24 @@ function showFocusCreateDialog (id) {
if(id === undefined){ if(id === undefined){
id = ''; id = '';
} }
document.getElementById('original-id').value = id; document.getElementById('original-id').value = id
$('#create-focus-modal').modal('show'); $('#create-focus-modal').modal('show')
var storedFocus = loadFocusById(id); var storedFocus = loadFocusById(id)
var focus = {}; var focus = {}
// Try to load a focus for the given id // Try to load a focus for the given id
$('#focus-name').val(''); $('#focus-name').val('')
uncheckAll(); uncheckAll()
if (storedFocus !== null) { if (storedFocus !== null) {
try { try {
focus = JSON.parse(localStorage.getItem(id)); focus = JSON.parse(localStorage.getItem(id))
$('#focus-name').val(focus.name); $('#focus-name').val(focus.name)
for (var key in focus) { for (var key in focus) {
if (key.startsWith('engine_')) { if (key.startsWith('engine_')) {
$('.focusCheckbox[name=' + key + ']').prop('checked', true); $('.focusCheckbox[name=' + key + ']').prop('checked', true)
} }
} }
} catch (ex) { } catch (ex) {
console.error(ex); console.error(ex)
} }
} }
} }
...@@ -218,41 +218,41 @@ function showFocusCreateDialog (id) { ...@@ -218,41 +218,41 @@ function showFocusCreateDialog (id) {
* Shows the focus create dialog for a given id * Shows the focus create dialog for a given id
*/ */
function showFocusEditDialog (id) { function showFocusEditDialog (id) {
showFocusCreateDialog(id); showFocusCreateDialog(id)
} }
/** /**
* Save the current Focus * Save the current Focus
* Listens for save button * Listens for save button
*/ */
function saveFocus () { function saveFocus () {
var name = document.getElementById('focus-name').value; var name = document.getElementById('focus-name').value
if (isValidName(name) && atLeastOneChecked()) { if (isValidName(name) && atLeastOneChecked()) {
var oldId = document.getElementById('original-id').value; var oldId = document.getElementById('original-id').value
var id = getIdFromName(name); var id = getIdFromName(name)
var overwrite = true; var overwrite = true
if (alreadyInUse(name) && oldId !== id) { if (alreadyInUse(name) && oldId !== id) {
overwrite = confirm('Name bereits genutzt\nüberschreiben?'); overwrite = confirm('Name bereits genutzt\nüberschreiben?')
if (overwrite) { if (overwrite) {
localStorage.removeItem(id); localStorage.removeItem(id)
removeFocusById(id); removeFocusById(id)
} }
} }
if (overwrite) { if (overwrite) {
var focus = {}; var focus = {}
$('input[type=checkbox]:checked').each(function (el) { $('input[type=checkbox]:checked').each(function (el) {
focus[$(this).attr('name')] = $(this).val(); focus[$(this).attr('name')] = $(this).val()
}) })
focus['name'] = name; focus['name'] = name
if (oldId !== '') { if (oldId !== '') {
localStorage.removeItem(oldId); localStorage.removeItem(oldId)
removeFocusById(oldId); removeFocusById(oldId)
} }
localStorage.setItem(id, JSON.stringify(focus)); localStorage.setItem(id, JSON.stringify(focus))
addFocus(name); addFocus(name)
$('#create-focus-modal').modal('hide'); $('#create-focus-modal').modal('hide')
} }
} else { } else {
alert('Bitte gültigen Namen eingeben:\n* Keine Sonderzeichen\n* Mindestens 1 Buchstabe\n* Mindestens 1 Suchmaschine auswählen'); alert('Bitte gültigen Namen eingeben:\n* Keine Sonderzeichen\n* Mindestens 1 Buchstabe\n* Mindestens 1 Suchmaschine auswählen')
} }
} }
/** /**
...@@ -260,13 +260,13 @@ function saveFocus () { ...@@ -260,13 +260,13 @@ function saveFocus () {
* Listens for delete button * Listens for delete button
*/ */
function deleteFocus () { function deleteFocus () {
var oldId = document.getElementById('original-id').value; var oldId = document.getElementById('original-id').value
if ($('#' + oldId).prop('checked')) { if ($('#' + oldId).prop('checked')) {
setFocusToDefault(); setFocusToDefault()
} }
localStorage.removeItem(oldId); localStorage.removeItem(oldId)
removeFocusById(oldId); removeFocusById(oldId)
$('#create-focus-modal').modal('hide'); $('#create-focus-modal').modal('hide')
} }
/** /**
* Is the name valid (in terms of characters)? * Is the name valid (in terms of characters)?
...@@ -274,147 +274,149 @@ function deleteFocus () { ...@@ -274,147 +274,149 @@ function deleteFocus () {
function isValidName (name) { function isValidName (name) {
// no Characters other then a-z, A-Z, 0-9, ä, ö, ü, ß, -, _ allowed // no Characters other then a-z, A-Z, 0-9, ä, ö, ü, ß, -, _ allowed
// at least 1 character // at least 1 character
return /^[a-zA-Z0-9äöüß\-_ ]*$/.test(name); return /^[a-zA-Z0-9äöüß\-_ ]*$/.test(name)
} }
/** /**
* Is at least one focus selected? * Is at least one focus selected?
*/ */
function atLeastOneChecked () { function atLeastOneChecked () {
return $('input[type=checkbox]:checked').length > 0; return $('input[type=checkbox]:checked').length > 0
} }
/** /**
* Is there already a focus with this name? * Is there already a focus with this name?
*/ */
function alreadyInUse (name) { function alreadyInUse (name) {
return localStorage.hasOwnProperty(getIdFromName(name)); return localStorage.hasOwnProperty(getIdFromName(name))
} }
/** /**
* Adds a focus html-element to the focus selection * Adds a focus html-element to the focus selection
* *
* <input id="NAME" class="hide" type="radio" name="focus" value="NAME" form="searchForm" checked required> * <input id="NAME" class="hide" type="radio" name="focus" value="NAME" form="searchForm" checked required>
* <label id="NAME-label" for="NAME"> * <label id="NAME-label" for="NAME">
* <span class="glyphicon glyphicon-star"></span> * <i class="fa fa-star" aria-hidden="true"></i>
* <span class="content">NAME</span> * <span class="content">NAME</span>
* <button class="btn btn-default"> * <button class="btn btn-default">
* <span class="glyphicon glyphicon-pencil"></span> * <i class="fa fa-pencil" aria-hidden="true"></i>
* </button> * </button>
* </label> * </label>
*/ */
function addFocus (name) { function addFocus (name) {
var id = getIdFromName(name) var id = getIdFromName(name)
var foki = document.getElementById('foki'); var foki = document.getElementById('foki')
// create <div> to wrap all Elements // create <div> to wrap all Elements
var wrapper = document.createElement('div'); var wrapper = document.createElement('div')
wrapper.classList.add('focus'); wrapper.classList.add('focus')
// create <input> // create <input>
var newFocus = document.createElement('input'); var newFocus = document.createElement('input')
newFocus.id = id; newFocus.id = id
newFocus.classList.add('focus-radio'); newFocus.classList.add('focus-radio')
newFocus.classList.add('custom-focus'); newFocus.classList.add('custom-focus')
newFocus.classList.add('hide'); newFocus.classList.add('hide')
newFocus.type = 'radio'; newFocus.type = 'radio'
newFocus.name = 'focus'; newFocus.name = 'focus'
newFocus.value = id; newFocus.value = id
newFocus.setAttribute('Form', 'searchForm'); newFocus.setAttribute('Form', 'searchForm')
newFocus.checked = true; newFocus.checked = true
newFocus.required = true; newFocus.required = true
// create <label> // create <label>
var newFocusLabel = document.createElement('label'); var newFocusLabel = document.createElement('label')
newFocusLabel.id = id + '-label'; newFocusLabel.id = id + '-label'
newFocusLabel.classList.add('focus-label'); newFocusLabel.classList.add('focus-label')
newFocusLabel.classList.add('custom-focus-label'); newFocusLabel.classList.add('custom-focus-label')
newFocusLabel.htmlFor = id; newFocusLabel.htmlFor = id
// create glyphicon // create <i> icon
var newFocusGlyphicon = document.createElement("span"); var newFocusIcon = document.createElement('i')
newFocusGlyphicon.classList.add("glyphicon"); newFocusIcon.classList.add('fa')
newFocusGlyphicon.classList.add("glyphicon-star"); newFocusIcon.classList.add('fa-star')
newFocusIcon.setAttribute('aria-hidden', 'true')
// create content // create content
var newFocusContent = document.createElement('span'); var newFocusContent = document.createElement('span')
newFocusGlyphicon.classList.add("content"); newFocusIcon.classList.add('content')
newFocusContent.textContent = name; newFocusContent.textContent = ' ' + name
// create edit button // create edit button
var newFocusEditLink = document.createElement('a'); var newFocusEditLink = document.createElement('a')
newFocusEditLink.classList.add('focus-edit'); newFocusEditLink.classList.add('focus-edit')
newFocusEditLink.classList.add('custom-focus-edit'); newFocusEditLink.classList.add('custom-focus-edit')
newFocusEditLink.classList.add('mutelink'); newFocusEditLink.classList.add('mutelink')
newFocusEditLink.href = '#'; newFocusEditLink.href = '#'
newFocusEditLink.onclick = function () { newFocusEditLink.onclick = function () {
showFocusEditDialog(id); showFocusEditDialog(id)
} }
var newFocusEditLinkGlyphicon = document.createElement("span"); var newFocusEditLinkIcon = document.createElement('i')
newFocusEditLinkGlyphicon.classList.add("glyphicon"); newFocusEditLinkIcon.classList.add('fa')
newFocusEditLinkGlyphicon.classList.add("glyphicon-pencil"); newFocusEditLinkIcon.classList.add('fa-pencil')
newFocusEditLinkIcon.setAttribute('aria-hidden', 'true')
// add new elements // add new elements
var addFocusBtn = document.getElementById('addFocusBtnDiv'); var addFocusBtn = document.getElementById('addFocusBtnDiv')
foki.insertBefore(wrapper, addFocusBtn); foki.insertBefore(wrapper, addFocusBtn)
wrapper.appendChild(newFocus); wrapper.appendChild(newFocus)
wrapper.appendChild(newFocusLabel); wrapper.appendChild(newFocusLabel)
newFocusLabel.appendChild(newFocusGlyphicon); newFocusLabel.appendChild(newFocusIcon)
newFocusLabel.appendChild(newFocusContent); newFocusLabel.appendChild(newFocusContent)
wrapper.appendChild(newFocusEditLink); wrapper.appendChild(newFocusEditLink)
newFocusEditLink.appendChild(newFocusEditLinkGlyphicon); newFocusEditLink.appendChild(newFocusEditLinkIcon)
} }
/** /**
* Remove the focuses html-elements * Remove the focuses html-elements
*/ */
function removeFocus (name) { function removeFocus (name) {
removeFocusById(getIdFromName(name)); removeFocusById(getIdFromName(name))
} }
/** /**
* Remove the focuses html-elements * Remove the focuses html-elements
*/ */
function removeFocusById (id) { function removeFocusById (id) {
var focusRadio = document.getElementById(id); var focusRadio = document.getElementById(id)
var focus = focusRadio.parentNode; var focus = focusRadio.parentNode
var parent = focus.parentNode; var parent = focus.parentNode
parent.removeChild(focus); parent.removeChild(focus)
} }
/** /**
* Turns a name into an id * Turns a name into an id
* Converts special characters and spaces * Converts special characters and spaces
*/ */
function getIdFromName (name) { function getIdFromName (name) {
name = name.toLowerCase(); name = name.toLowerCase()
name = name.split(' ').join('_'); name = name.split(' ').join('_')
name = name.split('ä').join('ae'); name = name.split('ä').join('ae')
name = name.split('ö').join('oe'); name = name.split('ö').join('oe')
name = name.split('ü').join('ue'); name = name.split('ü').join('ue')
return 'focus_' + name; return 'focus_' + name
} }
/** /**
* Loads the focus object for the given id from local storage * Loads the focus object for the given id from local storage
*/ */
function loadFocusById (id) { function loadFocusById (id) {
return JSON.parse(localStorage.getItem(id)); return JSON.parse(localStorage.getItem(id))
} }
/** /**
* Unchecks all focuses from the focus creator dialog * Unchecks all focuses from the focus creator dialog
*/ */
function uncheckAll () { function uncheckAll () {
$('.focusCheckbox').prop('checked', false); $('.focusCheckbox').prop('checked', false)
} }
/** /**
* Resets all settings * Resets all settings
*/ */
function resetOptions () { function resetOptions () {
localStorage.removeItem('pers'); localStorage.removeItem('pers')
var keys = []; var keys = []
for (var i = 0; i < localStorage.length; i++) { for (var i = 0; i < localStorage.length; i++) {
var key = localStorage.key(i); var key = localStorage.key(i)
keys.push(key); keys.push(key)
} }
for (var i = 0; i < keys.length; i++) { for (var i = 0; i < keys.length; i++) {
var key = keys[i]; var key = keys[i]
if (key.startsWith('param_' || key.startsWith('focus'))) { if (key.startsWith('param_' || key.startsWith('focus'))) {
localStorage.removeItem(key); localStorage.removeItem(key)
} }
} }
} }
function setFocusToDefault () { function setFocusToDefault () {
setFocus('web'); setFocus('web')
} }
function setFocus (focusID) { function setFocus (focusID) {
$('#' + focusID).prop('checked', true); $('#' + focusID).prop('checked', true)
} }
{ {
"js/editLanguage.js": "js/editLanguage-1ce447084a.js", "js/editLanguage.js": "js/editLanguage-1ce447084a.js",
"js/kontakt.js": "js/kontakt-9365c46d5a.js", "js/kontakt.js": "js/kontakt-9365c46d5a.js",
"js/scriptResultPage.js": "js/scriptResultPage-d3ca0bffab.js", "js/scriptResultPage.js": "js/scriptResultPage-c6b34cc3ab.js",
"js/scriptStartPage.js": "js/scriptStartPage-4c0c34c9eb.js", "js/scriptStartPage.js": "js/scriptStartPage-5e21fefbc8.js",
"js/settings.js": "js/settings-0af8170dff.js", "js/settings.js": "js/settings-0af8170dff.js",
"js/widgets.js": "js/widgets-40195be855.js" "js/widgets.js": "js/widgets-40195be855.js"
} }
\ No newline at end of file
Source diff could not be displayed: it is too large. Options to address this: view the blob.
I hope you love Font Awesome. If you've found it useful, please do me a favor and check out my latest project,
Fort Awesome (https://fortawesome.com). It makes it easy to put the perfect icons on your website. Choose from our awesome,
comprehensive icon sets or copy and paste your own.
Please. Check it out.
-Dave Gandy
This diff is collapsed.
This diff is collapsed.
File added
File added
This diff is collapsed.
File added
File added
File added
// Animated Icons
// --------------------------
.@{fa-css-prefix}-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
.@{fa-css-prefix}-pulse {
-webkit-animation: fa-spin 1s infinite steps(8);
animation: fa-spin 1s infinite steps(8);
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
// Bordered & Pulled
// -------------------------
.@{fa-css-prefix}-border {
padding: .2em .25em .15em;
border: solid .08em @fa-border-color;
border-radius: .1em;
}
.@{fa-css-prefix}-pull-left { float: left; }
.@{fa-css-prefix}-pull-right { float: right; }
.@{fa-css-prefix} {
&.@{fa-css-prefix}-pull-left { margin-right: .3em; }
&.@{fa-css-prefix}-pull-right { margin-left: .3em; }
}
/* Deprecated as of 4.4.0 */
.pull-right { float: right; }
.pull-left { float: left; }
.@{fa-css-prefix} {
&.pull-left { margin-right: .3em; }
&.pull-right { margin-left: .3em; }
}
// Base Class Definition
// -------------------------
.@{fa-css-prefix} {
display: inline-block;
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
// Fixed Width Icons
// -------------------------
.@{fa-css-prefix}-fw {
width: (18em / 14);
text-align: center;
}
/*!
* Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
*/
@import "variables.less";
@import "mixins.less";
@import "path.less";
@import "core.less";
@import "larger.less";
@import "fixed-width.less";
@import "list.less";
@import "bordered-pulled.less";
@import "animated.less";
@import "rotated-flipped.less";
@import "stacked.less";
@import "icons.less";
@import "screen-reader.less";
This diff is collapsed.
// Icon Sizes
// -------------------------
/* makes the font 33% larger relative to the icon container */
.@{fa-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -15%;
}
.@{fa-css-prefix}-2x { font-size: 2em; }
.@{fa-css-prefix}-3x { font-size: 3em; }
.@{fa-css-prefix}-4x { font-size: 4em; }
.@{fa-css-prefix}-5x { font-size: 5em; }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment