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
| $(document).ready(function(){ | |
| href = window.location.href.match(/block=([0-9a-z\-_]*)/i) | |
| if(href.length > 1){ | |
| block_id = href[1] | |
| $target = $("#" + block_id) | |
| console.log($target.offset) | |
| var targetOffset = $target.offset().top - 80; | |
| $('html, body').animate({ |
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 ($(window).width() < 800) { | |
| // 當視窗寬度小於800px時執行 | |
| // 寫在這裡 | |
| } else { | |
| // 當視窗寬度不小於800px時執行 | |
| // 寫在這裡 | |
| } | |
| }); |
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 ScreenSize(){ | |
| var NowWidth = $(window).width(); | |
| var NowHeight = $(window).height(); | |
| $("#show").html(NowWidth + ":" + NowHeight); | |
| }; | |
| $(document).ready(function(){ | |
| ScreenSize(); | |
| }) | |
| $(window).resize(function(){ | |
| ScreenSize(); |
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 () { | |
| var w = $(window).width(); | |
| var h = $(window).height(); | |
| $("#show").html(w + ":" + h); | |
| $(window).resize(function () { | |
| var NowWidth = $(window).width(); | |
| var NowHeight = $(window).height(); | |
| $("#show").html(NowWidth + ":" + NowHeight); | |
| }) | |
| }); |
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
| a::after{ | |
| content:""; | |
| width:14px; | |
| height:20px; | |
| background:#d3d3d3; | |
| -webkit-mask:url('../img/arrow.svg') no-repeat center; | |
| -webkit-mask-size:cover; | |
| mask:url('../img/arrow.svg') no-repeat center; | |
| mask-size:cover; | |
| display:block; |
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
| .rounded-corners-gradient-borders { | |
| width: 300px; | |
| height: 80px; | |
| border: double 4px transparent; | |
| border-radius: 80px; | |
| background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff); | |
| background-origin: border-box; | |
| background-clip: content-box, border-box; | |
| } |
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
| .rounded-corners-gradient-borders { | |
| width: 300px; | |
| height: 80px; | |
| border: double 4px transparent; | |
| border-radius: 80px; | |
| background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff); | |
| background-origin: border-box; | |
| background-clip: content-box, border-box; | |
| } |
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
| .something{ | |
| content:""; | |
| background-color:#ffdc9a; | |
| position: absolute; | |
| width:25px; | |
| height:20px; | |
| margin-top:-23px; | |
| margin-left:-15px; | |
| transform:rotate(-50deg); | |
| mask:url('../img/crown-solid.svg') no-repeat; |
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
| // Tab選單 | |
| .TabMenuArea{ | |
| width:100%; | |
| li{ | |
| max-width:8rem; | |
| margin:0px 1rem; | |
| display:inline-block; | |
| a{ |
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
| // 瀏覽器可視範圍 寬除高 超過比例1.77時 | |
| @media screen and (min-aspect-ratio:1800 / 1013){ | |
| .Bg-Content-img{ | |
| width: 100%; | |
| height: auto; | |
| min-height: 100%; | |
| } | |
| } | |
| // 瀏覽器可視範圍 寬除高 不超過比例1.77時 |