利用 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
font-family: ui-monospace, | |
Menlo, Monaco, | |
"Cascadia Mono", "Segoe UI Mono", | |
"Roboto Mono", | |
"Oxygen Mono", | |
"Ubuntu Mono", | |
"Source Code Pro", | |
"Fira Mono", | |
"Droid Sans Mono", | |
"Consolas", "Courier New", monospace; |
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
<script>document.write(/\d{4}/.exec(Date())[0])</script> |
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
# Canonical HTTPS/non-WWW | |
<IfModule mod_rewrite.c> | |
RewriteCond %{HTTPS} off [OR] | |
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC] | |
RewriteRule (.*) https://example.com/$1 [L,R=301] | |
</IfModule> |
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
# Redirect to https and non-www | |
# Canonical HTTPS/non-WWW | |
<IfModule mod_rewrite.c> | |
RewriteCond %{HTTPS} off [OR] | |
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC] | |
RewriteRule (.*) https://example.com/$1 [L,R=301] | |
</IfModule> |
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 --> |
NewerOlder