Skip to content

Commit 8a555b0

Browse files
committed
Made some changes to notifications.
1 parent ed34b22 commit 8a555b0

File tree

2 files changed

+28
-48
lines changed

2 files changed

+28
-48
lines changed

index.html

Lines changed: 27 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -108,23 +108,17 @@
108108
<script src="https://www.gstatic.com/firebasejs/8.5.0/firebase-app.js"></script>
109109
<script src="https://www.gstatic.com/firebasejs/8.5.0/firebase-messaging.js"></script>
110110
<script type="text/javascript">
111-
Notification.requestPermission().then((permission) => {
112-
if (permission === 'granted') {
113-
console.log('Notification permission granted.');
114-
} else {
115-
console.log('Unable to get permission to notify.');
116-
}
117-
});
118111
if (navigator.serviceWorker.controller) {
119112
console.log('[PWA] active service worker found, no need to register')
120113
} else {
121-
navigator.serviceWorker.register('pw-ServiceWorker.js', {
114+
navigator.serviceWorker.register('webpushr-sw.js', {
122115
scope: './'
123116
}).then(function (reg) {
124117
console.log('Service worker has been registered for scope:' + reg.scope);
125118
});
126119
}
127-
</script>
120+
</script>
121+
<script>(function(w,d, s, id) {if(typeof(w.webpushr)!=='undefined') return;w.webpushr=w.webpushr||function(){(w.webpushr.q=w.webpushr.q||[]).push(arguments)};var js, fjs = d.getElementsByTagName(s)[0];js = d.createElement(s); js.id = id;js.async=1;js.src = "https://cdn.webpushr.com/app.min.js";fjs.parentNode.appendChild(js);}(window,document, 'script', 'webpushr-jssdk'));webpushr('setup',{'key':'BH1JS9pvHCXuWMMso3Vonr_xyrwFUtiRoKJwjr1lK86wTWiccxcIn9FtAd0ms9lnaokQw0JDuKW09uA5Lzkeemg' });</script>
128122
</head>
129123

130124
<body>
@@ -155,26 +149,22 @@
155149
<div class="uk-navbar-dropdown bg5"
156150
uk-dropdown="animation: uk-animation-slide-top; duration: 400;delay-hide:300;">
157151
<ul class="uk-nav uk-navbar-dropdown-nav">
158-
<li class="uk-active uk-dark"><a href="#">Active</a></li>
159-
<li><a href="#">Top Python tricks</a></li>
160-
<li><a href="#">Item</a></li>
152+
<li><a href="https://sapython.me/pages/blog/posts/Top-5-most-interesting-and-usable-python-tricks-in-2021-.html">Top 5 Python tricks</a></li>
161153
</ul>
162154
</div>
163155
</li>
164-
<li><a href="#">Item</a></li>
165-
<li><a href="#"><button class="bttn-pill bttn-fill bttn-md bttn-primary">Products</button></a></li>
156+
<li><a href="https://sapython.me/pages/contact/contact.html">Contact</a></li>
157+
<li><a href="https://sapython.me/pages/projects/projects.html"><button class="bttn-pill bttn-fill bttn-md bttn-primary">Projects</button></a></li>
166158
<div class="liftup uk-margin">
167159
<div class="gcse-search">
168160
<script loading="lazy">
169161
var a = setInterval(() => {
170162
var elements = document.getElementsByClassName("gsc-search-button")
171-
console.log("ELemets " + elements, elements.length)
172163
for (let i = 0; i < elements.length; i++) {
173164
elements[i].innerHTML = '<span uk-search-icon style="width:20px;height:20px"></span>'
174-
console.log("ELement data", elements[0].innerHTML)
165+
document.getElementById("gsc-i-id1").placeholder="Search"
175166
clearInterval(a);
176167
}
177-
178168
}, 500
179169
)
180170
</script>
@@ -290,6 +280,8 @@ <h4 class="uk-width-1-2@m uk-text-center uk-margin-auto uk-margin-auto-vertical"
290280
</section>
291281
<section class="uk-section-muted uk-padding-small uk-margin-large-top bg" id="projects">
292282
<!-- <hr height=5 class="uk-divider-icon"> -->
283+
<img class="absolute-align-left animationSVG" id="onDesktop" uk-scrollspy="cls: uk-animation-slide-left; repeat: false " src="/images/animationSVGs/Standing.svg">
284+
<img class="absolute-align-right absolute-align-bottom-right animationSVG" id="onDesktop" uk-scrollspy="cls: uk-animation-slide-right; repeat: false" src="/images/animationSVGs/Humaaan.svg">
293285
<div class="txt t2" style="text-align: center;">My Projects</div>
294286
<div style="margin-top: 40px;">
295287
<div class="uk-child-width-expand@s uk-text-center"
@@ -364,7 +356,7 @@ <h2 class="txt t2">Sapython</h2>
364356
</div>
365357
</div>
366358
</div>
367-
<div class="uk-text-center uk-margin-medium-top">
359+
<div class="uk-text-center uk-margin-medium-top" uk-scrollspy="cls: uk-animation-scale-up; repeat: false">
368360
<a href="./pages/projects/projects.html">
369361
<button class="bttn-float bttn-md curvey hrPadding"
370362
style="background-color:#c21c40;border: none;padding: 5px 30px;">
@@ -376,7 +368,7 @@ <h2 class="txt t2">Sapython</h2>
376368
<section class="spacer"></section>
377369
<section class="uk-section-muted uk-padding-small bg" id="plans">
378370
<h3 style="font-size: xx-large;color: white;text-align: center;">App Plans</h3>
379-
<div class="uk-child-width-expand@s uk-text-center" uk-grid="">
371+
<div class="uk-child-width-expand@s uk-text-center" uk-grid="" uk-scrollspy="cls: uk-animation-scale-up; target: >div repeat: false">
380372
<div>
381373
<div class="uk-card uk-card-default uk-card-body bg2 txt t3 liftup completeborder">
382374
App Basic Plan
@@ -568,7 +560,7 @@ <h4 class="uk-width-1-2@m uk-text-center uk-margin-auto uk-margin" style="font-s
568560
Options</span>
569561
<div class="uk-accordion-content">
570562
<ul class="uk-list uk-list-muted">
571-
<li class="t5"><span class="fa fa-check correct"></span> A custom hybrid app.📱
563+
<li class="t5"><span class="fa fa-check correct"></span> A custom hybrid app.
572564
</li>
573565
<li class="t5"><span class="fa fa-check correct"></span> Implements upto 25
574566
Features.</li>
@@ -639,20 +631,20 @@ <h4 class="uk-width-1-2@m uk-text-center uk-margin-auto uk-margin" style="font-s
639631
<img alt="Kumar Saptam" class="userImage liftup" loading="lazy"
640632
src="https://res.cloudinary.com/sapython/image/upload/v1619787018/Kumar_Saptam_kshcsk.jpg" />
641633
</div>
642-
<div class="uk-card uk-card-body uk-padding-large uk-box-shadow-hover-large uk-width-auto uk-align-center"
634+
<div class="uk-card uk-card-body uk-padding-large uk-box-shadow-hover-large uk-width-auto uk-align-center bg3"
643635
style="margin:20px 20px 0px 20px;">
644636
<!-- ShareThis BEGIN -->
645637
<div class="sharethis-inline-follow-buttons"></div><!-- ShareThis END -->
646-
<p style="font-size: larger;"><span style="font-size: xx-large;"></span>well-experienced
647-
programmer who is dedicated towards making creative and interactive websites and
638+
<p style="font-size: larger;"><span style="font-size: xx-large;"></span> <span class="txt3">well-experienced</span>
639+
programmer who is dedicated towards making <span class="txt3">creative</span> and interactive websites and
648640
apps.</p>
649641
<p style="font-size: larger;">       Saptam is a well-rounded
650-
website and app designer with 6 years of experience working as a
642+
<span class="txt3"> website and app designer</span> and developer with <span class="txt3">6 years of experience</span> working as a
651643
developer and brand identity designer for large corporations, mainly in the e-commerce
652644
sector.
653645
</p>
654-
<p style="font-size: larger;">       He has been a senior
655-
developer for Jaitra since 2018. Most recently, He was responsible for
646+
<p style="font-size: larger;">       He has been a <span class="txt3">senior
647+
developer for Jaitra since 2018.</span> Most recently, He was responsible for
656648
solely developing an e-commerce food ordering app for the FryerMan.co. His main focus is
657649
creating content that not only inspires others but also functions as a powerful marketing
658650
tool
@@ -661,21 +653,18 @@ <h4 class="uk-width-1-2@m uk-text-center uk-margin-auto uk-margin" style="font-s
661653
development to exist- a concept he lives out through his interest in coding and playing
662654
chess.
663655
</p>
664-
<p style="font-size: larger;">       He specializes in hybrid
665-
app development and Progressive Web App development. By using
666-
technologies like flutter he can create apps both for Android and IOS. Which are high in
656+
<p style="font-size: larger;">       He specializes in <span class="txt3">hybrid
657+
app development</span> and <span class="txt3">Progressive Web App</span> development. By using
658+
technologies like <span class="txt3">flutter</span> he can create apps both for Android and IOS. Which are high in
667659
performance and look nice with an amazing User Interface built with great User Experience.
668-
He
669-
also creates Progressive Web App which is performing websites that function as an app but
670-
are
660+
He also creates Progressive Web App which is performing websites that function as an app but are
671661
structured like a website, no need to install it just visit the page and it's loaded. </p>
672-
<p style="font-size: larger;">       In all of Saptam’s past
673-
positions, he has consistently increased software performance,
674-
functionality, UI design, improved server management, memberships, newsletter signups, and
662+
<p style="font-size: larger;">       In all of Saptam's past
663+
positions, he has consistently <span class="txt3">increased software performance</span>,
664+
functionality, <span class="txt3">UI design</span>, improved <span class="txt3">server management</span>, memberships, newsletter signups, and
675665
more.
676666
He has successfully discovered new niche markets and strategic partnerships for companies of
677-
all
678-
sizes, refined product strategies, increased brand reach, reworked brands, and developed and
667+
all sizes, <span class="txt3">refined product strategies, increased brand reach, reworked brands</span>, and developed and
679668
implemented technological plans.</p>
680669
<div class="sharethis-inline-reaction-buttons uk-text-center"></div>
681670
</div>
@@ -710,7 +699,7 @@ <h3>Thoughts On Technology</h3>
710699
</section>
711700
<footer class="uk-padding-small bg2 liftuptop wrapper uk-height-1-2@s uk-padding uk-height-1-3@l uk-height-1-3@xl"
712701
id="footer">
713-
<img alt="Heart" height="50" loading="lazy" src="images/heart.svg" width="50" />
702+
<img alt="Heart" height="50" loading="lazy" src="./images/heart.svg" width="50" />
714703
<p>Made with love from Saptam</p>
715704
<a href="#header" uk-scroll="">
716705
<button class="up">

webpushr-sw.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
importScripts('https://www.gstatic.com/firebasejs/8.5.0/firebase-app.js');
2-
importScripts('https://www.gstatic.com/firebasejs/8.5.0/firebase-messaging.js');
31
importScripts('https://cdn.webpushr.com/sw-server.min.js');
4-
var firebaseConfig = {
5-
apiKey: "AIzaSyDcBtiZKm1UQmBx40EMY0wweMIxUXXmB8g",
6-
projectId: "sapython-f016a",
7-
messagingSenderId: "796109016505",
8-
appId: "1:796109016505:web:071d0ecf3d25f5ad8afa68",
9-
};
10-
firebase.initializeApp(firebaseConfig);
11-
const messaging = firebase.messaging();
2+
console.log("Service worker loaded")
123

134
const filesToCache=[
145
'/',

0 commit comments

Comments
 (0)