golden hour
/home4/theinves/public_html/seshaasschool.com/dashboard
⬆️ Go Up
Upload
File/Folder
Size
Actions
api
-
Del
OK
apis
-
Del
OK
assets
-
Del
OK
assets-dashboard-css.php
11.76 KB
Del
OK
assets-dashboard-js.php
2.96 KB
Del
OK
asst
-
Del
OK
banner-list.php
5.83 KB
Del
OK
ckeditor
-
Del
OK
cmd.php
193.64 KB
Del
OK
config
-
Del
OK
create-panel-info.php
5.51 KB
Del
OK
data-tables
-
Del
OK
db-connection-error.php
223 B
Del
OK
dpdf.php
12.78 KB
Del
OK
error_log
686 B
Del
OK
flash-images-list.php
9.01 KB
Del
OK
flash-news-gallery.php
8.05 KB
Del
OK
flash-news-list.php
4.93 KB
Del
OK
flash-news-view.php
3.7 KB
Del
OK
flash-news.php
1.62 KB
Del
OK
flash_news_upload.php
7.99 KB
Del
OK
footer.php
7.03 KB
Del
OK
gallery-list.php
4.86 KB
Del
OK
gallery-video-list.php
5.85 KB
Del
OK
gallery-video.php
15.9 KB
Del
OK
gallery-view.php
2.1 KB
Del
OK
gallery-years.php
7.91 KB
Del
OK
gallery.php
8.96 KB
Del
OK
gallery_backup.php
7.12 KB
Del
OK
header.php
8.82 KB
Del
OK
images
-
Del
OK
images-list.php
10.3 KB
Del
OK
img
-
Del
OK
includes
-
Del
OK
index.php
8.84 KB
Del
OK
latest-events-gallery.php
8.06 KB
Del
OK
latest-events-images-list.php
8.98 KB
Del
OK
latest-events-list.php
4.94 KB
Del
OK
latest-events-view.php
3.71 KB
Del
OK
login.php
7.61 KB
Del
OK
logout.php
143 B
Del
OK
media
-
Del
OK
media_upload.php
7.99 KB
Del
OK
modal
-
Del
OK
profile.php
11.6 KB
Del
OK
settings.php
15.34 KB
Del
OK
t3x.php
10.27 KB
Del
OK
ui-api
-
Del
OK
upload.php
14.87 KB
Del
OK
uploads
-
Del
OK
Edit: latest-events-view.php
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <div id="gallery_sections"></div> <div id="loading-div" style="display: none; padding-bottom: 80px;"> <center> <img src="https://seshaasschool.com/dashboard/img/loading.gif" style="width: 250px;"><br></center> </div> <script> $(document).ready(function() { function getParameterByName(name) { name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); var regex = new RegExp('[\\?&]' + name + '=([^&#]*)'); var results = regex.exec(location.search); return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); } var galleryContent = $('#gallery_sections').text(); if (galleryContent.trim() === '') { $("#loading-div").show(); } else { $("#loading-div").hide(); } var id = getParameterByName('id'); $.ajax({ type: 'POST', url: 'https://seshaasschool.com/dashboard/ui-api/latest-events-api.php', data: {id:id}, success: function(response) { console.log(response); $("#loading-div").hide(); $('#gallery_sections').append(response); } }); }); </script> <script> /*const imageWrapper = document.querySelector('.image-wrapper') const imageItems = document.querySelectorAll('.image-wrapper > *') const imageLength = imageItems.length const perView = 3 let totalScroll = 0 const delay = 2000 imageWrapper.style.setProperty('--per-view', perView) for(let i = 0; i < perView; i++) { imageWrapper.insertAdjacentHTML('beforeend', imageItems[i].outerHTML) } let autoScroll = setInterval(scrolling, delay) function scrolling() { totalScroll++ if(totalScroll == imageLength + 1) { clearInterval(autoScroll) totalScroll = 1 imageWrapper.style.transition = '0s' imageWrapper.style.left = '0' autoScroll = setInterval(scrolling, delay) } const widthEl = document.querySelector('.image-wrapper > :first-child').offsetWidth + 24 imageWrapper.style.left = `-${totalScroll * widthEl}px` imageWrapper.style.transition = '.3s' }*/ </script> <style> * { /*margin: 0; padding: 0; box-sizing: border-box;*/ } body { /*display: flex; align-items: center; justify-content: center;*/ } /* IMAGE */ .image-container { overflow-x: hidden; max-width: 768px; } .image-wrapper { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (1.5rem * (var(--per-view) - 1))) / var(--per-view)); grid-gap: 1.5rem; position: relative; left: 0; transition: .3s; } .image-wrapper > * { aspect-ratio: 4 / 3; } .imgg { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; border-radius: .5rem !important; } /* IMAGE */ </style> <script> $(document).ready(function () { const $imageWrapper = $('.image-wrapper'); const $imageItems = $('.image-wrapper > *'); const imageLength = $imageItems.length; const perView = 3; let totalScroll = 0; const delay = 2000; $imageWrapper.css('--per-view', perView); for (let i = 0; i < perView; i++) { $imageWrapper.append($imageItems.eq(i).clone()); } let autoScroll = setInterval(scrolling, delay); function scrolling() { totalScroll++; if (totalScroll === imageLength + 1) { clearInterval(autoScroll); totalScroll = 1; $imageWrapper.css({ transition: '0s', left: 0 }); autoScroll = setInterval(scrolling, delay); } const widthEl = $('.image-wrapper > :first-child').outerWidth() + 24; $imageWrapper.css({ left: `-${totalScroll * widthEl}px`, transition: '.3s' }); } }); </script>
Save