Файл: themes/classic/js/lte-ie7.js
Строк: 445
<?php
/*
* Use this script if you need to support IE 7 and IE 6.
* Inline HTML Comments have been removed as of IE10, so adding the script based on the comments requires additional markup just for IE10
* Instead you can use this snippet to add the icons with the risk that if the user has disabled the access to the UA it will not work
*/
var Elusive = Elusive || {};
;(function(window, document, undefined) {
Elusive.Icons = {
init : function(iev) {
if (iev === -1 || iev >= 8) { return false; };
var els = document.getElementsByTagName('*'),
i, attr, c, el;
for(i = els.length - 1; i >= 0; i--) {
el = els[i];
attr = el.getAttribute('data-icon');
if(attr) { Elusive.Icons.addIcon(el, attr); };
c = el.className;
c = c.match(/icon-[^s'"]+/);
if(c && Elusive.Icons.icons[c[0]]) { Elusive.Icons.addIcon(el, Elusive.Icons.icons[c[0]]); };
};
},
getIEV : function() {
var rv = -1;
if(navigator.appName == 'Microsoft Internet Explorer') {
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");
if(re.exec(ua) != null) {
rv = parseFloat( RegExp.$1 );
};
};
return rv;
},
addIcon : function(el, entity) {
var html = el.innerHTML;
el.innerHTML = '<span style="font-family: 'Elusive-Icons'">' + entity + '</span>' + html;
},
icons : {
'icon-zoom-out': '',
'icon-zoom-in': '',
'icon-youtube': '',
'icon-wrench-alt': '',
'icon-wrench': '',
'icon-wordpress': '',
'icon-wheelchair': '',
'icon-website-alt': '',
'icon-website': '',
'icon-warning-sign': '',
'icon-w3c': '',
'icon-volume-up': '',
'icon-volume-off': '',
'icon-volume-down': '',
'icon-vimeo': '',
'icon-view-mode': '',
'icon-video-chat': '',
'icon-video-alt': '',
'icon-video': '',
'icon-user': '',
'icon-upload': '',
'icon-unlock-alt': '',
'icon-unlock': '',
'icon-universal-access': '',
'icon-twitter': '',
'icon-tumblr': '',
'icon-trash-alt': '',
'icon-trash': '',
'icon-torso': '',
'icon-tint': '',
'icon-time-alt': '',
'icon-time': '',
'icon-thumbs-up': '',
'icon-thumbs-down': '',
'icon-th-list': '',
'icon-th-large': '',
'icon-th': '',
'icon-text-width': '',
'icon-text-height': '',
'icon-tasks': '',
'icon-tags': '',
'icon-tag': '',
'icon-stumbleupon': '',
'icon-stop-alt': '',
'icon-stop': '',
'icon-step-forward': '',
'icon-step-backward': '',
'icon-star-empty': '',
'icon-star-alt': '',
'icon-star': '',
'icon-stackoverflow': '',
'icon-speaker': '',
'icon-smiley-alt': '',
'icon-smiley': '',
'icon-slideshare': '',
'icon-skype': '',
'icon-signal': '',
'icon-shopping-cart-sign': '',
'icon-shopping-cart': '',
'icon-share-alt': '',
'icon-share': '',
'icon-search-alt': '',
'icon-search': '',
'icon-screenshot': '',
'icon-screen-alt': '',
'icon-screen': '',
'icon-rss': '',
'icon-road': '',
'icon-reverse-alt': '',
'icon-retweet': '',
'icon-resize-vertical': '',
'icon-resize-small': '',
'icon-resize-horizontal': '',
'icon-resize-full': '',
'icon-repeat-alt': '',
'icon-repeat': '',
'icon-remove-sign': '',
'icon-remove-circle': '',
'icon-remove': '',
'icon-refresh': '',
'icon-reddit': '',
'icon-record': '',
'icon-random': '',
'icon-quotes-alt': '',
'icon-quotes': '',
'icon-question-sign': '',
'icon-question': '',
'icon-qrcode': '',
'icon-print': '',
'icon-plus-sign': '',
'icon-plus': '',
'icon-play-circle': '',
'icon-play-alt': '',
'icon-play': '',
'icon-plane': '',
'icon-pinterest': '',
'icon-picture': '',
'icon-picasa': '',
'icon-photo-alt': '',
'icon-photo': '',
'icon-phone-alt': '',
'icon-phone': '',
'icon-person': '',
'icon-pencil-alt': '',
'icon-pencil': '',
'icon-pause-alt': '',
'icon-pause': '',
'icon-path': '',
'icon-paper-clip-alt': '',
'icon-paper-clip': '',
'icon-ok-sign': '',
'icon-ok-circle': '',
'icon-ok': '',
'icon-off': '',
'icon-network': '',
'icon-music': '',
'icon-move': '',
'icon-minus-sign': '',
'icon-minus': '',
'icon-mic-alt': '',
'icon-mic': '',
'icon-map-marker-alt': '',
'icon-map-marker': '',
'icon-male': '',
'icon-magnet': '',
'icon-lock-alt': '',
'icon-lock': '',
'icon-list-alt': '',
'icon-list': '',
'icon-linkedin': '',
'icon-leaf': '',
'icon-laptop-alt': '',
'icon-laptop': '',
'icon-key': '',
'icon-italic': '',
'icon-iphone-home': '',
'icon-instagram': '',
'icon-info-sign': '',
'icon-indent-right': '',
'icon-indent-left': '',
'icon-hand-right': '',
'icon-hand-left': '',
'icon-hand-down': '',
'icon-guidedog': '',
'icon-group-alt': '',
'icon-group': '',
'icon-forward-alt': '',
'icon-forward': '',
'icon-fontsize': '',
'icon-font': '',
'icon-folder-sign': '',
'icon-folder-open': '',
'icon-female': '',
'icon-fast-forward': '',
'icon-fast-backward': '',
'icon-facetime-video': '',
'icon-facebook': '',
'icon-eye-open': '',
'icon-dashboard': '',
'icon-css': '',
'icon-credit-card': '',
'icon-compass-alt': '',
'icon-compass': '',
'icon-comment-alt': '',
'icon-chevron-down': '',
'icon-check-empty': '',
'icon-check': '',
'icon-certificate': '',
'icon-cc': '',
'icon-camera': '',
'icon-ban-circle': '',
'icon-backward': '',
'icon-asterisk': '',
'icon-asl': '',
'icon-arrow-up': '',
'icon-arrow-right': '',
'icon-heart-alt': '',
'icon-heart': '',
'icon-hearing-impaired': '',
'icon-headphones': '',
'icon-hdd': '',
'icon-hand-up': '',
'icon-github': '',
'icon-gift': '',
'icon-fullscreen': '',
'icon-friendfeed-rect': '',
'icon-friendfeed': '',
'icon-foursquare': '',
'icon-file-new-alt': '',
'icon-file-new': '',
'icon-file-edit-alt': '',
'icon-file-edit': '',
'icon-file-alt': '',
'icon-file': '',
'icon-dribble': '',
'icon-download-alt': '',
'icon-download': '',
'icon-digg': '',
'icon-deviantart': '',
'icon-delicious': '',
'icon-circle-arrow-left': '',
'icon-circle-arrow-down': '',
'icon-child': '',
'icon-chevron-up': '',
'icon-chevron-right': '',
'icon-chevron-left': '',
'icon-bold': '',
'icon-blogger': '',
'icon-blind': '',
'icon-bell': '',
'icon-behance': '',
'icon-barcode': '',
'icon-arrow-left': '',
'icon-arrow-down': '',
'icon-align-right': '',
'icon-align-left': '',
'icon-align-justify': '',
'icon-align-center': '',
'icon-adult': '',
'icon-adjust': '',
'icon-address-book-alt': '',
'icon-address-book': '',
'icon-idea': '',
'icon-home-alt': '',
'icon-home': '',
'icon-heart-empty': '',
'icon-globe': '',
'icon-glasses': '',
'icon-glass': '',
'icon-github-text': '',
'icon-flag': '',
'icon-fire': '',
'icon-filter': '',
'icon-film': '',
'icon-envelope-alt': '',
'icon-envelope': '',
'icon-eject': '',
'icon-edit': '',
'icon-cloud-alt': '',
'icon-cloud': '',
'icon-circle-arrow-up': '',
'icon-circle-arrow-right': '',
'icon-braille': '',
'icon-bookmark-empty': '',
'icon-bookmark': '',
'icon-book': '',
'icon-inbox-box': '',
'icon-inbox-alt': '',
'icon-inbox': '',
'icon-idea-alt': '',
'icon-graph-alt': '',
'icon-graph': '',
'icon-googleplus': '',
'icon-globe-alt': '',
'icon-folder-close': '',
'icon-folder': '',
'icon-flickr': '',
'icon-flag-alt': '',
'icon-eye-close': '',
'icon-exclamation-sign': '',
'icon-error-alt': '',
'icon-error': '',
'icon-comment': '',
'icon-cogs': '',
'icon-cog-alt': '',
'icon-cog': '',
'icon-calendar-sign': '',
'icon-calendar': '',
'icon-bullhorn': '',
'icon-briefcase': '',
'icon-vkontakte': ''
}
};
/*
* Initiate the icons addition if the browser version is less than 8
*/
Elusive.Icons.init(Elusive.Icons.getIEV());
})(window, document);
?>