One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens
/
js
/
pages
/
View File Name :
appMedia.js
/* * Document : appMedia.js * Author : pixelcave * Description: Custom javascript code used in Media Box page */ var AppMedia = function() { return { init: function() { var mediaFilter = $('.media-filter'); var mediaItems = $('.media-filter-items'); var showCategory; // When a media filter link is clicked mediaFilter.find('a').on('click', function() { // Get its data-category value showCategory = $(this).data('category'); // Procceed only if the user clicked on an inactive category if ( ! $(this).parent().hasClass('active')) { // Remove active class from all filter links mediaFilter.find('a').parent().removeClass('active'); // Add the active class to the clicked link $(this).parent().addClass('active'); // If the value is 'all' hide the current visible items and show them all together, else hide them all and show only from the category we need if (showCategory === 'all') { mediaItems .find('.media-items') .parent() .hide(0, function(){ $(this).show(0); }); } else { mediaItems .find('.media-items') .parent() .hide(0, function(){ mediaItems .find('[data-category="' + showCategory + '"]') .parent('div') .show(0); }); } } }); } }; }();