利用 GSAP ScrollTrigger Pluging 製作簡單頁面捲動動畫效果
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
| <body> | |
| <nav> | |
| <img src="https://bit.ly/2NKLFXr" alt=""> | |
| <div> | |
| <ul id="ul-menu"> | |
| <li><a id="menu_link" href="#section_beaches">Beaches</a></li> | |
| <li><a id="menu_link" href="#section_temples">Civlization</a></li> | |
| <li><a id="menu_link" href="#section_places">Places</a></li> | |
| </ul> |
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 (!empty($_GET['variable'])) { | |
| // Do something. | |
| } | |
| ?> |
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 | |
| function isRussian($text) { | |
| return preg_match('/[А-Яа-яЁё]/u', $text); | |
| } | |
| ?> |
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
| <div id="carouselExampleControls" class="carousel slide" data-ride="carousel"> | |
| <div class="carousel-inner"> | |
| <div class="carousel-item active"> | |
| <img src="..." class="d-block w-100" alt="..."> | |
| </div> | |
| <div class="carousel-item"> | |
| <img src="..." class="d-block w-100" alt="..."> | |
| </div> | |
| <div class="carousel-item"> | |
| <img src="..." class="d-block w-100" alt="..."> |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| <title>Bootstrap 4.5.2 Starter Template</title> | |
| <!-- Bootstrap core CSS --> |
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
| (http(s?):)([/|.|\w|\s|-])*\.(?:jpg|gif|png) |
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
| // original from: http://mashe.hawksey.info/2014/07/google-sheets-as-a-database-insert-with-apps-script-using-postget-methods-with-ajax-example/ | |
| // original gist: https://gist.github.com/willpatera/ee41ae374d3c9839c2d6 | |
| function doGet(e){ | |
| return handleResponse(e); | |
| } | |
| // Enter sheet name where data is to be written below | |
| var SHEET_NAME = "Sheet1"; |
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
| $.fn.serializeObject = function() { | |
| var o = {}; | |
| var a = this.serializeArray(); | |
| $.each(a, function() { | |
| if (o[this.name]) { | |
| if (!o[this.name].push) { | |
| o[this.name] = [o[this.name]]; | |
| } | |
| o[this.name].push(this.value || ""); | |
| } else { |
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
| ================================================================= | |
| Ultimate Comment Blacklist | |
| Source: | |
| Ultimate Comment Blacklist for WordPress | |
| https://perishablepress.com/wordpress-ultimate-comment-blacklist/ | |
| License: |