Skip to content

Commit

Permalink
Fix linter issues reported by coala (#656)
Browse files Browse the repository at this point in the history
Fixes #643
  • Loading branch information
yukiisbored authored and robbyoconnor committed Dec 24, 2016
1 parent 4dbb791 commit c63ba53
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 32 deletions.
14 changes: 4 additions & 10 deletions geo/index.html
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>
33 changes: 17 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,23 +145,24 @@ <h2>MENTORS</h2>
</section>
<!-- End of Mentor Section -->

<section id="contributorsThanks" href="#contributors">
<div id="contributorsThanks-list" class="row">
<div class="content">
<div class="visible">
<p>
Thanks for contribution
</p>
<ul>
<li id="name">everyone !</li>

</ul>
</div>
</div>
</div>
</section>
<section id="contributors-thanks" href="#contributors">
<div id="contributors-thanks-list" class="row">
<div class="col-md-12">
<div class="content">
<div class="visible">
<p>
Thanks for contribution
</p>
<ul>
<li id="name">everyone !</li>
</ul>
</div>
</div>
</div>
</div>
</section>

<!-- Contributor Section -->
<!-- Contributor Section -->
<section id="contributors" href="#contributors" class="contributors-sec">
<div id="contributors-list" class="row">
<!-- Start ignoring BootLintBear -->
Expand Down
15 changes: 9 additions & 6 deletions javascripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function loadSocialMediaWidgets() {
if (window.innerWidth <= 370) {
widgetWidth = 300;
}

// Facebook
var fbDiv = document.querySelector('.facebook-widget');
var fbFrame = document.createElement('iframe');
Expand All @@ -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);
Expand All @@ -183,8 +183,10 @@ function loadSocialMediaWidgets() {
script.setAttribute('src', '//apis.google.com/js/platform.js');
script.setAttribute('async', true);
document.head.appendChild(script);

// Twitter
// 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);
}
Expand All @@ -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;');
Expand All @@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit c63ba53

Please sign in to comment.