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
| /* | |
| ----------------------- | |
| ESP8266 Monitor its Own Battery Level using IoT | |
| ----------------------- | |
| Voltage Monitoring in Volts and Percentage | |
| Temperate and Humidity Sensor | |
| */ |
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
| #include <ESP8266WiFi.h> | |
| String apiKey = "DT5E8MZSXYCUBLMD"; | |
| const char* ssid = "yourssid"; // Enter your WiFi Network's SSID | |
| const char* pass = "yourwifipassword"; // Enter your WiFi Network's Password | |
| const char* server = "api.thingspeak.com"; | |
| int analogInPin = A0; // Analog input pin | |
| int sensorValue; // Analog Output of Sensor | |
| float calibration = 8.21; // Check Battery voltage using multimeter & add/subtract the value |
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
| /* Health Quiz Start */ | |
| .fmg-health-quiz_wrapper{ | |
| padding: 15px; | |
| background:#fff; | |
| font-family: 'Muli', sans-serif; | |
| } | |
| form.fmg-health-quiz .gf_progressbar_title{ |
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
| /* Add Class "sticky-header" to the header element */ | |
| header.sticky-header { | |
| --header-height: 120px; | |
| --opacity: 1; | |
| --shrink-me: 0.70; | |
| --sticky-background-color: #ffffff; | |
| --transition: .3s ease-in-out; | |
| transition: background-color var(--transition), | |
| background-image var(--transition), |
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
| <?php | |
| /* Custom user meta */ | |
| add_action( 'show_user_profile', 'extra_user_profile_fields' ); | |
| add_action( 'edit_user_profile', 'extra_user_profile_fields' ); | |
| function extra_user_profile_fields( $user ) { ?> | |
| <h3><?php _e("Extra profile information", "blank"); ?></h3> |
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
| .cf-wrapper{ | |
| position: relative; | |
| } | |
| #left-input { | |
| width: 47%; | |
| float: left; | |
| margin-right:6%; | |
| } | |
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
| /* Optimize Press 2.0 Smooth Scroll */ | |
| /* Add this to your page-setting */ | |
| /* Anchor tag jump will be smooth */ | |
| <script> | |
| opjq(function($) { | |
| $('a[href*="#"]:not([href="#"])').click(function() { | |
| if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
| var target = $(this.hash); | |
| target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); |
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
| <?php | |
| if ( ( is_user_logged_in() && $current_user->ID == $post->post_author ) ) { // Execute code if user is logged in or user is the author | |
| acf_form_head(); | |
| wp_deregister_style( 'wp-admin' ); | |
| } | |
| get_header(); | |
| ?> |
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
| <?php // get_template_part('archive-kb'); ?> | |
| <?php | |
| /** | |
| * The template for displaying Archive pages | |
| * | |
| * Used to display archive-type pages if nothing more specific matches a query. | |
| * For example, puts together date-based pages if no date.php file exists. | |
| * |
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
| /* | |
| ==================================================================== | |
| Adding Purchase Link to Woocommerce Product in Wordpress Dashboard | |
| ==================================================================== | |
| */ | |
| if (is_admin()) { | |
| add_action('admin_print_scripts', 'add_direct_checkout_link'); | |
| function add_direct_checkout_link() { | |
| ?> |