Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="zh-TW">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>東京淺草觀音寺一百籤</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
            box-sizing: border-box;
            background-color: #f0f0f0;
        }
        h1 {
            text-align: center;
            color: #333;
        }
        #buddha-image {
            width: 200px;
            height: 200px;
            margin-bottom: 20px;
        }
        #instructions {
            text-align: center;
            margin: 20px 0;
            max-width: 600px;
            line-height: 1.6;
            color: #555;
        }
        #draw-button {
            font-size: 18px;
            padding: 10px 20px;
            cursor: pointer;
        }
        #result {
            margin-top: 20px;
            font-size: 24px;
        }
        #footer {
            margin-top: 40px;
            text-align: center;
            color: #666;
        }
        #video-container {
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <svg id="buddha-image" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
        <!-- SVG 內容保持不變 -->
        <circle cx="100" cy="100" r="90" fill="#FFD700" opacity="0.3"/>
        <path d="M70 190 Q100 120 130 190" fill="#FFA500"/>
        <circle cx="100" cy="70" r="30" fill="#FFE4B5"/>
        <path d="M85 50 Q100 20 115 50" fill="#000000"/>
        <ellipse cx="90" cy="65" rx="3" ry="2" fill="#000000"/>
        <ellipse cx="110" cy="65" rx="3" ry="2" fill="#000000"/>
        <path d="M95 80 Q100 85 105 80" fill="none" stroke="#000000" stroke-width="1"/>
        <path d="M70 120 Q50 140 60 170" fill="none" stroke="#FFA500" stroke-width="10"/>
        <path d="M130 120 Q150 140 140 170" fill="none" stroke="#FFA500" stroke-width="10"/>
        <path d="M40 190 Q100 170 160 190" fill="#FF69B4"/>
    </svg>
    <h1>東京淺草觀音寺一百籤</h1>
    <p id="instructions">
        請誠心默念自己姓名、國曆生日、戶籍、住址和請示的事情,比如說仕途、身心、事業和者姻緣等等
    </p>
    <button id="draw-button">抽籤</button>
    <div id="result"></div>

    <div id="footer">
        <p>本網站利用 Claude 3.5 完成,可以看看本影片介紹</p>
        <div id="video-container">
            <iframe width="560" height="315" src="https://www.youtube.com/embed/JwwEPBupQl0?si=3VYkyCfPtkKiNWK_" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
        </div>
    </div>

    <script>
        document.getElementById('draw-button').addEventListener('click', function() {
            const number = Math.floor(Math.random() * 100) + 1;
            const link = `https://qiangua.temple01.com/qianshi.php?t=fs_akt100&s=${number}`;
            document.getElementById('result').innerHTML = `
                您抽到第 ${number} 籤<br>
                <a href="${link}" target="_blank">點擊查看籤詩</a>
            `;
        });
    </script>
</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console