Skip to content

Commit

Permalink
update strings
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Feb 23, 2020
1 parent 04c4cc8 commit 799f79d
Show file tree
Hide file tree
Showing 12 changed files with 166 additions and 1,461 deletions.
45 changes: 0 additions & 45 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,50 +67,6 @@
}
}

var _supportsCssAnimation;
var _supportsCssAnimationWithPrefix;
function supportsCssAnimation(allowPrefix) {

if (allowPrefix) {
if (_supportsCssAnimationWithPrefix === true || _supportsCssAnimationWithPrefix === false) {
return _supportsCssAnimationWithPrefix;
}
} else {
if (_supportsCssAnimation === true || _supportsCssAnimation === false) {
return _supportsCssAnimation;
}
}

var animation = false,
animationstring = 'animation',
keyframeprefix = '',
domPrefixes = ['Webkit', 'O', 'Moz'],
pfx = '',
elm = document.createElement('div');

if (elm.style.animationName !== undefined) { animation = true; }

if (animation === false && allowPrefix) {
for (var i = 0; i < domPrefixes.length; i++) {
if (elm.style[domPrefixes[i] + 'AnimationName'] !== undefined) {
pfx = domPrefixes[i];
animationstring = pfx + 'Animation';
keyframeprefix = '-' + pfx.toLowerCase() + '-';
animation = true;
break;
}
}
}

if (allowPrefix) {
_supportsCssAnimationWithPrefix = animation;
return _supportsCssAnimationWithPrefix;
} else {
_supportsCssAnimation = animation;
return _supportsCssAnimation;
}
}

var uaMatch = function (ua) {
ua = ua.toLowerCase();

Expand Down Expand Up @@ -200,7 +156,6 @@
browser.operaTv = browser.tv && userAgentLower.indexOf('opr/') !== -1;

browser.keyboard = hasKeyboard(browser);
browser.supportsCssAnimation = supportsCssAnimation;

browser.iOS = browser.ipad || browser.iphone || browser.ipod;

Expand Down
18 changes: 0 additions & 18 deletions dom.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
define([], function () {
'use strict';

// Regular Expressions for parsing tags and attributes
var SURROGATE_PAIR_REGEXP = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
// Match everything outside of normal chars and " (quote character)
NON_ALPHANUMERIC_REGEXP = /([^#-~ |!])/g;

var tempDiv = document.createElement('div');

/**
Expand All @@ -19,19 +14,6 @@ define([], function () {

tempDiv.textContent = value;
return tempDiv.innerHTML;

//return value.
// replace(/&/g, '&amp;').
// replace(SURROGATE_PAIR_REGEXP, function (value) {
// var hi = value.charCodeAt(0);
// var low = value.charCodeAt(1);
// return '&#' + (((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000) + ';';
// }).
// replace(NON_ALPHANUMERIC_REGEXP, function (value) {
// return '&#' + value.charCodeAt(0) + ';';
// }).
// replace(/</g, '&lt;').
// replace(/>/g, '&gt;');
}

function parentWithAttribute(elem, name, value) {
Expand Down
12 changes: 0 additions & 12 deletions headroom/headroom.css

This file was deleted.

Loading

0 comments on commit 799f79d

Please sign in to comment.