-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
278 lines (246 loc) · 13.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ಸಿ ಪಿ ನಾಗರಾಜ ಅವರ ಕನ್ನಡ ಸಾಹಿತ್ಯ ಸಂಚಯ</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="ಸಿ ಪಿ ನಾಗರಾಜ ಅವರ ಕನ್ನಡ ಪುಸ್ತಕಗಳ ಸುಲಭ ಲಭ್ಯತೆಗೆ ಡಿಜಿಟಲ್ ಸಂಚಯವನ್ನು ಸೃಷ್ಟಿಸಲಾಗಿದೆ!">
<meta name="author" content="Sanchaya">
<meta property="og:image" content="http://pvn.sanchaya.net/img/cover_modularjavascript.png" />
<meta property="og:title" content="ಸಿ ಪಿ ನಾಗರಾಜ ಅವರ ಕನ್ನಡ ಸಾಹಿತ್ಯ ಸಂಚಯ" />
<meta property="og:description" content="ಸಿ ಪಿ ನಾಗರಾಜ ಅವರ ಕನ್ನಡ ಪುಸ್ತಕಗಳ ಸುಲಭ ಲಭ್ಯತೆಗೆ ಡಿಜಿಟಲ್ ಸಂಚಯವನ್ನು ಸೃಷ್ಟಿಸಲಾಗಿದೆ!" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://pvn.sanchaya.net/" />
<meta name="twitter:card" content="ಅಂತರಜಾಲದಲ್ಲಿರುವ ಡಿಜಿಟಲ್ ಕನ್ನಡ ಪುಸ್ತಕಗಳ ಸುಲಭ ಲಭ್ಯತೆಗೆ ಡಿಜಿಟಲ್ ಸಂಚಯವನ್ನು ಸೃಷ್ಟಿಸಲಾಗಿದೆ!"/>
<meta name="twitter:url" content="http://digital.sanchaya.net/"/>
<meta name="twitter:title" content="ಸಿ ಪಿ ನಾಗರಾಜ ಅವರ ಕನ್ನಡ ಸಾಹಿತ್ಯ ಸಂಚಯ"/>
<meta name="twitter:description" content="ಸಿ ಪಿ ನಾಗರಾಜ ಅವರ ಕನ್ನಡ ಪುಸ್ತಕಗಳ ಸುಲಭ ಲಭ್ಯತೆಗೆ ಡಿಜಿಟಲ್ ಸಂಚಯವನ್ನು ಸೃಷ್ಟಿಸಲಾಗಿದೆ!"/>
<meta name="twitter:image" content="http://digital.sanchaya.net/img/cover_modularjavascript.png"/>
<meta name=”twitter:creator” value=”@_sanchaya />
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="./css/index.css" media="all">
<!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
<link rel="shortcut icon" href="./img/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="./img/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./img/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./img/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="./assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
<!-- ==========================
NAVBAR
=========================== -->
<div class="navbar navbar-fixed-top jshead">
<img src="./img/logo_sanchaya.png" alt="Sanchaya" width="200" height="54">
<h1>ಸಿ ಪಿ ನಾಗರಾಜ ಅವರ ಕನ್ನಡ ಸಾಹಿತ್ಯ ಸಂಚಯ</h1>
<div class="">
<a href="https://sanchifoundation.org" id="sanchi">ಸಂಚಿ ಫೌಂಡೇಶನ್</a>
|
<a href="https://sanchaya.org" id="sanchaya">ಸಂಚಯ</a>
</div>
<a href="#" id="infos">?</a>
<div id="twittit">
<a href="https://twitter.com/_sanchaya" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false">Follow @_sanchaya</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<div class="container">
<center><form><script src="https://cdn.razorpay.com/static/widget/payment-button.js" data-payment_button_id="pl_FTB1pZqrFP6jrt"> </script> </form>
</center>
</div>
</div>
<!-- ==========================
TOGGLE INFOS
=========================== -->
<div class="container" id="jsinfos">
<div class="row">
<div class="span6">
<h4>ಸಿ ಪಿ ನಾಗರಾಜ ಅವರ ಕನ್ನಡ ಸಾಹಿತ್ಯ ಸಂಚಯ</h4>
<hr>
<p> "ಸಿ ಪಿ ನಾಗರಾಜ ಅವರ ಕನ್ನಡ ಪುಸ್ತಕಗಳ ಸುಲಭ ಲಭ್ಯತೆಗೆ ಡಿಜಿಟಲ್ ಸಂಚಯವನ್ನು ಸೃಷ್ಟಿಸಲಾಗಿದೆ!. ಈ ಕಾರ್ಯಕ್ಕೆ ಆಸಕ್ತರು, ಪುಸ್ತಕಗಳನ್ನು ಹೊಂದಿರುವವರು,
ನಮ್ಮ ತಾಂತ್ರಿಕ ಕೆಲಸಗಳಿಗೆ ಸಹಕರಿಸುವವರು, ಯಾರು ಬೇಕಾದರೂ ಕೈ ಜೋಡಿಸಬಹುದು. ಸಂಪರ್ಕಿಸಿ [email protected]</p>
</div>
<div class="span6">
<a href="https://twitter.com/share" class="twitter-share-button" data-text="ಡಿಜಿಟಲ್ ಕನ್ನಡ ಪುಸ್ತಕಗಳು - ಸಂಚಯದ ಪುಸ್ತಕ ಡಿಜಿಟಲೀಕರಣ ಯೋಜನೆಯ ಭಾಗವಾಗಿದೆ" data-via="_sanchaya"></a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>
</div>
<!-- ==========================
JOB / PYTHONBOOKS
=========================== -->
<div class="container">
<div class="row">
<div class="pythonbooks span12">
<p>See also :</p>
<a href="https://.sanchaya.net/" title="ಪುಸ್ತಕ ಡಿಜಿಟಲೀಕರಣ ಯೋಜನೆ" target="_blank">
<img src="./img/logo_sanchaya.png" alt="Sanchaya" title="ಕನ್ನಡ ಭಾಷಾ ತಂತ್ರಜ್ಞಾನ ಸಂಶೋಧನೆ ಹಾಗೂ ಅಧ್ಯಯನ ವೇದಿಕೆ!" width="100" height="16">
</a>
<a href="https://sanchaya.org/project/kannada-digitization-project/" target="_blank">
</a>
</div>
<div class="span12 row-fluid">
<ul id="tab">
<li><a href="#books" >Books</a></li>
<li><a href="#videos" >Videos</a></li>
</ul>
</div>
<div class="span12 row-fluid">
<p class="span1" id="filterList">Filter by :</p>
<ul id="filterBy">
<li><a href="#" data-level="any" class="active" title="filter books by All">All</a></li>
<li><a href="#" data-level="2004" title="filter books by year">2004</a></li>
<li><a href="#" data-level="2008" title="filter books by year">2008</a></li>
<li><a href="#" data-level="2014" title="filter books by year">2014</a></li>
<li><a href="#" data-level="2019" title="filter books by year">2019</a></li>
<li><a href="#" data-level="2020" title="filter books by year">2020</a></li>
<li><a href="#" data-level="2021" title="filter books by year">2021</a></li>
<li><a href="#" data-level="2022" title="filter books by year">2022</a></li>
<li><a href="#" data-level="2023" title="filter books by year">2023</a></li>
<li><a href="#" data-level="2024" title="filter books by year">2024</a></li>
</ul>
</div>
</div>
<!-- ////////// WRAPPER BOOKS -->
<div id="issueswrap"></div>
</div>
<!-- ==========================
FOOTER
=========================== -->
<div class="footer">
<hr>
<p> Sanchi Foundation® | ಸಂಚಿ ಫೌಂಡೇಷನ್® Except where otherwise noted, content on this site
is licensed under a Creative Commons Attribution 4.0 International License.
Each book has its own copyright/license. Please read the metadata on the book page. </p>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="./js/mustache.js"></script>
<script type="text/javascript">
function randOrd(){
return (Math.round(Math.random())-0.5);
}
function filterBy() {
var // var's sort by
active = 'active',
btFilterBy = $('#filterBy').find('a'),
booksection = $('.booksection');
// interaction filter by level
btFilterBy.on('click', function(e) {
e.preventDefault();
var level = $(this).data('level');
if (level==='any') {
// restore all books
booksection.show();
} else {
booksection.not('.' + level).fadeOut('fast');
booksection.filter('.' + level).fadeIn('fast');
}
btFilterBy.removeClass(active);
$(this).addClass(active);
});
$('#issueswrap').addClass('row');
$('#filterList').show();
$('#filterBy').show();
}
// Function to fetch and display videos from YouTube channel
function fetchVideos() {
// // Function to fetch playlists for a channel using pagination
function fetchAllChannelPlaylists(channelId, pageToken = '') {
const apiKey = "AIzaSyDuAOaASWKbVh-XA1IVP4IzSvnp5eYez1k";
const maxResults = 50; // Maximum number of playlists per page
let playlists = [];
fetch(`https://www.googleapis.com/youtube/v3/playlists?part=snippet&channelId=${channelId}&key=${apiKey}&maxResults=${maxResults}&pageToken=${pageToken}`)
.then(response => response.json())
.then(data => {
playlists = playlists.concat(data.items);
const nextPageToken = data.nextPageToken;
if (nextPageToken) {
// If there are more playlists, recursively fetch the next page
fetchAllChannelPlaylists(channelId, nextPageToken);
} else {
// All playlists have been fetched, render them
renderPlaylists(playlists);
}
})
.catch(error => console.error("Error fetching channel playlists:", error));
}
// Render playlists on your website
function renderPlaylists(playlists) {
const container = document.getElementById("issueswrap");
container.innerHTML = ''; // Clear existing content
playlists.forEach(playlist => {
const playlistItem = document.createElement("div");
playlistItem.classList.add("playlist");
playlistItem.innerHTML = `
<br>
<h2>${playlist.snippet.title}</h2>
<iframe width="450" height="300" src="https://www.youtube.com/embed/videoseries?list=${playlist.id}" frameborder="0" allowfullscreen></iframe>
`;
container.appendChild(playlistItem);
});
$('#issueswrap').addClass('videos');
$('#filterList').hide();
$('#filterBy').hide();
}
const channelId = "UCNSZ90nLF80bwP-ZZ9zVvhA";
fetchAllChannelPlaylists(channelId);
}
$(document).ready(function() {
function displayBooks(){
// get the data and compile into the html template
$.getJSON('./issues.json?' + Math.random(), function(data) {
var template = $('#booktpl').html(),
issuesWrap = $('#issueswrap');
data.books.sort(randOrd);
issuesWrap.html(Mustache.to_html(template, data));
$('#filterList').show();
filterBy();
});
}
displayBooks();
// Handle click on Videos tab
$('#tab li a[href="#videos"]').on('click', function(e) {
e.preventDefault();
fetchVideos(); // Fetch and display videos from YouTube
});
// Handle click on Books tab
$('#tab li a[href="#books"]').on('click', function(e) {
e.preventDefault();
displayBooks();
});
var // var's info
jsInfos = $('#jsinfos'),
btInfo = $('a.#infos');
// interaction show more info about it
jsInfos.hide();
btInfo.on('click', function(){
jsInfos.slideToggle();
});
});
</script>
<script id="booktpl" type="text/template">
{{#books}}
<div class="span4 booksection {{level}}">
<a target="_blank" href="{{url}}">
<div class="view"> ಓದಿರಿ </div>
<div title="{{ title }}" id="cover" style="background:black url('{{cover}}') no-repeat center;-webkit-background-size:cover;-moz-background-size:cover;background-size:cover;">
</div>
<h2 title="{{ title }}">{{title}}</h2>
</a>
<h3><a href="{{authorUrl}}" target="_blank">{{author}}</a></h3>
<p class="level">{{level}}</p>
<p class="description">{{info}}</p>
</div>
{{/books}}
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RRZLCXBXJZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-4R3DJ46QED');
</script>
</body>
</html>