This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .class_name { | |
| border: 0.094rem solid transparent; | |
| border-radius: 20px; | |
| position: relative; | |
| padding-top: 30px; | |
| padding-bottom: 20px; | |
| &::before { | |
| position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (document.querySelector('.en-popup')) { | |
| var popUp = document.querySelector('.en-popup'); | |
| document.addEventListener("mouseout", function popUpEventHandler(e) { | |
| if (e.toElement === null) { | |
| popUp.classList.add('show') | |
| document.body.classList.add('popup-no-scroll') | |
| this.removeEventListener('mouseout', popUpEventHandler); | |
| } | |
| }) | |
| var closePopUp = document.querySelectorAll('.close-popup'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function convertHMS(value) { | |
| const sec = parseInt(value, 10); // convert value to number if it's string | |
| let hours = Math.floor(sec / 3600); // get hours | |
| let minutes = Math.floor((sec - (hours * 3600)) / 60); // get minutes | |
| let seconds = sec - (hours * 3600) - (minutes * 60); // get seconds | |
| // add 0 if value < 10; Example: 2 => 02 | |
| if (hours < 10) {hours = "0"+hours;} | |
| if (minutes < 10) {minutes = "0"+minutes;} | |
| if (seconds < 10) {seconds = "0"+seconds;} | |
| return hours+':'+minutes+':'+seconds; // Return is HH : MM : SS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require_once(ABSPATH . 'wp-admin/includes/plugin-install.php'); | |
| $args = [ | |
| 'slug' => 'YOUR PLUGIN NAME', | |
| 'fields' => [ | |
| 'short_description' => false, | |
| 'icons' => true, | |
| 'reviews' => false, | |
| ],]; | |
| $data = plugins_api('plugin_information', $args); | |
| echo $data->active_installs; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.onkeydown = function(e) { | |
| return !(e.keyCode == 32); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function () { | |
| function reSizeArea(e) { | |
| var arr = $.makeArray(e); | |
| var ah = $.map(arr, function (h) { | |
| return $(h).height(); | |
| }); | |
| var mh = Math.max.apply($(this).height(), ah); | |
| e.height(mh); | |
| } | |
| reSizeArea($('YOUE_CLASS_NAME')); |