From a6df69941a40e5ce75835205409d05f0c013d99a Mon Sep 17 00:00:00 2001 From: Mayuri Botre Date: Fri, 21 May 2021 15:13:13 +0530 Subject: [PATCH] Fixed HTML and JavaScript error I have fixed all the HTML and JavaScript error. --- index.html | 908 +++++++++++++++++++++++----------------------- service_worker.js | 154 ++++---- 2 files changed, 535 insertions(+), 527 deletions(-) diff --git a/index.html b/index.html index f8c8592..de6fdf1 100644 --- a/index.html +++ b/index.html @@ -1,480 +1,486 @@ - - - Open Source Diversity - - - - - - - - - - - - - - - - - - + + + Open Source Diversity + + + + + + - - - + + + + -
-
- -

Open Source Diversity

-

For more diversity & inclusion in free & open source software communities 😊

-

- Join our forum! - Join us on Telegram! -

-
-
+
+
+ +

Open Source Diversity

+

For more diversity & inclusion in free & open source software communities 😊

+

+ Join our forum! + Join us on Telegram! +

+
+
-
-
-
-

Basics

-

First steps to help make your open source project more friendly and inclusive

-
- -
+
+
+
+

Basics

+

First steps to help make your open source project more friendly and inclusive

+
+ +
-
-
-
-

Projects

-

Open source projects which support underrepresented groups and where you can participate

-
- - - - -
+
+
+
+

Projects

+

Open source projects which support underrepresented groups and where you can participate

+
+ + + + +
-
-
-

Spaces

-

Find a local space or meetup where you can work with like-minded people!

- - -
+
+
+

Spaces

+

Find a local space or meetup where you can work with like-minded people!

+ + +
-
-
-

Programs

-

Recurring programs for mentorship, funding or networking

- - - - - -
+
+
+

Programs

+

Recurring programs for mentorship, funding or networking

+ + + + + +
-
-
-

Events

-
+ + + +
+
+

Articles

+

Background information on diversity & inclusion in open source

+ + +
+ +
+
+

Consulting

+

Experts who share their knowledge and can be hired as consultants

+ +
-
-
-

Articles

-

Background information on diversity & inclusion in open source

- - -
+ -
-
-

Consulting

-

Experts who share their knowledge and can be hired as consultants

- -
- + + + - - - - - - - + \ No newline at end of file diff --git a/service_worker.js b/service_worker.js index 942c890..059db8b 100644 --- a/service_worker.js +++ b/service_worker.js @@ -1,79 +1,81 @@ -importScripts('vendor/cache-polyfill.js'); +// proper initialization +if ('function' === typeof importScripts) { + importScripts('vendor/cache-polyfill.js'); -const version = "0.7"; -const cacheName = `opensourcediversity-${version}`; + const version = "0.7"; + const cacheName = `opensourcediversity-${version}`; -self.addEventListener('install', function(e) { - e.waitUntil( - caches.open(cacheName).then(function(cache) { - return cache.addAll([ - '/', - '/index.html', - '/css/custom.css', - '/css/Nunito-Bold.ttf', - '/css/Nunito-Regular.ttf', - '/css/OFL.txt', - '/css/custom.css', - '/scripts/meetupAPI.js', - '/vendor/bootstrap.min.css', - '/vendor/bootstrap.min.js', - '/vendor/jquery-3.3.1.min.js', - '/vendor/popper.min.js', - '/img/highlight-white-small-left.svg', - '/img/highlight-white-small-right.svg', - '/img/highlight.svg', - '/img/opensourcediversity-icon-margin.svg', - '/img/opensourcediversity-icon-white.svg', - '/img/discourse.svg', - '/img/twitter.svg', - '/img/github.svg', - '/img/irc.svg', - '/img/opencollective.svg', - '/img/projects/a11yproject.svg', - '/img/projects/accessibilitycloud.png', - '/img/projects/chaoss.jpg', - '/img/projects/chayn.png', - '/img/projects/commonvoice.png', - '/img/projects/contributorcovenant.png', - '/img/projects/diversifyfoss.png', - '/img/projects/diversitytickets.svg', - '/img/projects/doubleunion.png', - '/img/projects/fossjobs.svg', - '/img/projects/fundclub.jpg', - '/img/projects/girlscriptsummerofcode.jpg', - '/img/projects/globaldiversitycfpday.jpg', - '/img/projects/hacktober.jpg', - '/img/projects/heartofcode.jpg', - '/img/projects/lereset.jpg', - '/img/projects/opendemographics.jpg', - '/img/projects/openheroines.jpg', - '/img/projects/openlabs.jpg', - '/img/projects/opensourcedesign.svg', - '/img/projects/outreachy.png', - '/img/projects/outspokenwomen.jpg', - '/img/projects/prototypefund.jpg', - '/img/projects/railsgirls.png', - '/img/projects/signdict.svg', - '/img/projects/speakerinnen.jpg', - '/img/projects/supernovaproject.svg', - '/img/projects/upforgrabs.png', - '/img/projects/wheelmap.jpg', - '/img/projects/wikipedia-womeninred.png', - '/img/projects/womenhackfornonprofits.jpg', - '/img/projects/womeninopensource.png', - '/img/projects/writespeakcode.jpg', - '/img/projects/yourfirstpr.png' - ]); - }) - ); -}); + self.addEventListener('install', function(e) { + e.waitUntil( + caches.open(cacheName).then(function(cache) { + return cache.addAll([ + '/', + '/index.html', + '/css/custom.css', + '/css/Nunito-Bold.ttf', + '/css/Nunito-Regular.ttf', + '/css/OFL.txt', + '/scripts/meetupAPI.js', + '/vendor/bootstrap.min.css', + '/vendor/bootstrap.min.js', + '/vendor/jquery-3.3.1.min.js', + '/vendor/popper.min.js', + '/img/highlight-white-small-left.svg', + '/img/highlight-white-small-right.svg', + '/img/highlight.svg', + '/img/opensourcediversity-icon-margin.svg', + '/img/opensourcediversity-icon-white.svg', + '/img/discourse.svg', + '/img/twitter.svg', + '/img/github.svg', + '/img/irc.svg', + '/img/opencollective.svg', + '/img/projects/a11yproject.svg', + '/img/projects/accessibilitycloud.png', + '/img/projects/chaoss.jpg', + '/img/projects/chayn.png', + '/img/projects/commonvoice.png', + '/img/projects/contributorcovenant.png', + '/img/projects/diversifyfoss.png', + '/img/projects/diversitytickets.svg', + '/img/projects/doubleunion.png', + '/img/projects/fossjobs.svg', + '/img/projects/fundclub.jpg', + '/img/projects/girlscriptsummerofcode.jpg', + '/img/projects/globaldiversitycfpday.jpg', + '/img/projects/hacktober.jpg', + '/img/projects/heartofcode.jpg', + '/img/projects/lereset.jpg', + '/img/projects/open-demographics.png', + '/img/projects/openheroines.jpg', + '/img/projects/openlabs.jpg', + '/img/projects/opensourcedesign.svg', + '/img/projects/outreachy.png', + '/img/projects/outspokenwomen.jpg', + '/img/projects/prototypefund.jpg', + '/img/projects/railsgirls.png', + '/img/projects/signdict.svg', + '/img/projects/speakerinnen.jpg', + '/img/projects/supernovaproject.svg', + '/img/projects/upforgrabs.png', + '/img/projects/wheelmap.jpg', + '/img/projects/wikipedia-womeninred.png', + '/img/projects/womenhackfornonprofits.jpg', + '/img/projects/womeninopensource.png', + '/img/projects/writespeakcode.jpg', + '/img/projects/yourfirstpr.png' + ]); + }) + ); + }); -self.addEventListener('fetch', event => { - event.respondWith( - caches.open(cacheName) - .then(cache => cache.match(event.request, {ignoreSearch: true})) - .then(response => { - return response || fetch(event.request); - }) - ); -}); + self.addEventListener('fetch', event => { + event.respondWith( + caches.open(cacheName) + .then(cache => cache.match(event.request, { ignoreSearch: true })) + .then(response => { + return response || fetch(event.request); + }) + ); + }); +} \ No newline at end of file