-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linter issues reported by coala (#656)
Fixes #643
- Loading branch information
1 parent
4dbb791
commit c63ba53
Showing
3 changed files
with
30 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Language" content="en"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> | ||
<title>Fossasia Geo</title> | ||
<!-- NO-CACHE --> | ||
<meta http-equiv="cache-control" content="max-age=1"> | ||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"> | ||
<meta http-equiv="pragma" content="no-cache"> | ||
<meta http-equiv="expires" content="-1"> | ||
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT"> | ||
</head> | ||
<meta charset="utf-8"> | ||
<title>Fossasia Geo</title> | ||
</head> | ||
|
||
<body><script>window.location='https://fossasia.github.io/geolocation/'</script></body></html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,7 +163,7 @@ function loadSocialMediaWidgets() { | |
if (window.innerWidth <= 370) { | ||
widgetWidth = 300; | ||
} | ||
|
||
var fbDiv = document.querySelector('.facebook-widget'); | ||
var fbFrame = document.createElement('iframe'); | ||
|
@@ -174,7 +174,7 @@ function loadSocialMediaWidgets() { | |
fbFrame.setAttribute('frameborder', 0); | ||
fbFrame.setAttribute('allowtransparency', 'true'); | ||
fbDiv.appendChild(fbFrame); | ||
|
||
// Google+ | ||
if (widgetWidth === 300) { | ||
document.querySelector('.g-page').setAttribute('data-width', 300); | ||
|
@@ -183,8 +183,10 @@ function loadSocialMediaWidgets() { | |
script.setAttribute('src', '//apis.google.com/js/platform.js'); | ||
script.setAttribute('async', true); | ||
document.head.appendChild(script); | ||
|
||
// Start ignoring JSHintBear | ||
// This is obfuscated code from Twitter, It's a good idea to ignore it | ||
if (widgetWidth === 300) { | ||
document.querySelector('.twitter-timeline').setAttribute('data-width', 300); | ||
} | ||
|
@@ -202,7 +204,8 @@ function loadSocialMediaWidgets() { | |
fjs.parentNode.insertBefore(js, fjs); | ||
} | ||
}(document, "script", "twitter-wjs"); | ||
|
||
// Stop ignoring JSHintBear | ||
|
||
// Github | ||
if (widgetWidth === 300) { | ||
document.querySelector('.github-widget').setAttribute('style', 'width:300px !important;'); | ||
|
@@ -211,7 +214,7 @@ function loadSocialMediaWidgets() { | |
script.setAttribute('src', '//unpkg.com/[email protected]/dist/widget.js'); | ||
script.setAttribute('async', true); | ||
document.head.appendChild(script); | ||
|
||
// Youtube | ||
var ytFrame = document.createElement('iframe'); | ||
var ytDiv = document.querySelector('.embed-responsive-4by3'); | ||
|
@@ -220,7 +223,7 @@ function loadSocialMediaWidgets() { | |
ytFrame.setAttribute('frameborder', 0); | ||
ytFrame.classList.add('embed-responsive-item'); | ||
ytDiv.appendChild(ytFrame); | ||
|
||
// Flickr | ||
script = document.createElement('script'); | ||
script.setAttribute('src', '//flickrembed.com/embed_v2.js.php?source=flickr&layout=responsive&input=www.flickr.com/photos/fossasia&sort=0&by=user&theme=default&scale=fit&skin=default&id=5843ed99c6db7'); | ||
|