HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URL's 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 it's URL and the proper URL extention.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<script src="https://www.arsrna.cn/js/arlrc2html.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<div class="jumbotron">
<h1 class="display-4">Moon Halo</h1>
<span class="lead" style="font-size:200%">崩坏3《薪炎永燃》动画短片印象曲</span>
<span class="lead">-茶理理 / TetraCalyx / Hanser / HOYO-MiX</span>
<div class="lrc lead">
<span><i id="lrctime" style="font-size:80%;color:blue"></i></span>
<span id="lrclrc" style="color:green"></span>
</div>
<hr />
<audio src="https://arsrna.coding.net/p/website-mainsite/d/static-resources/git/raw/master/Moon%20Halo.mp3" controls id="lrcaudio" style="width:100%" preload></audio>
</div>
<script>
$(document).ready(function(){
arlrc.json(lrc,'lrcaudio','lrctime','lrclrc')
})
</script>
#time {
color:blue
}
/* Ar-Sr-Na RenderInfinity所有
未经允许禁止转载
*/
var lrc=[
{"time":"00:00.00","timeout":0 ,"lrc":" 作词 : TetraCalyx"},
{"time":"00:01.00","timeout":1 ,"lrc":" 作曲 : 蔡近翰Zoe/TetraCalyx"},
{"time":"00:02.00","timeout":2 ,"lrc":" 编曲 : 宫奇Gon"},
{"time":"00:03.00","timeout":3 ,"lrc":" 制作人 : 宫奇Gon"},
{"time":"00:08.24","timeout":8 ,"lrc":"Some deserts on this planet were oceans once"},
{"time":"00:15.23","timeout":15 ,"lrc":"Somewhere shrouded by the night, the sun will shine"},
{"time":"00:22.24","timeout":22 ,"lrc":"Sometimes I see a dying bird fall to the ground"},
{"time":"00:29.15","timeout":29 ,"lrc":"But it used to fly so high"},
{"time":"00:35.20","timeout":35 ,"lrc":"I thought I were no more than a bystander till I felt a touch so real"},
{"time":"00:42.22","timeout":42 ,"lrc":"I will no longer be a transient when I see smiles with tears"},
{"time":"00:50.00","timeout":50 ,"lrc":"If I have never known the sore of farewell and pain of sacrifices"},
{"time":"00:57.20","timeout":57 ,"lrc":"What else should I engrave on my mind"},
{"time":"01:05.07","timeout":65 ,"lrc":"Frozen into icy rocks, that's how it starts"},
{"time":"01:12.08","timeout":72 ,"lrc":"Crumbled like the sands of time, that's how it ends"},
{"time":"01:19.10","timeout":79 ,"lrc":"Every page of tragedy is thrown away burned out in the flame"},
{"time":"01:32.05","timeout":92 ,"lrc":"A shoulder for the past"},
{"time":"01:35.02","timeout":95 ,"lrc":"Let out the cries imprisoned for so long"},
{"time":"01:39.07","timeout":99 ,"lrc":"A pair of wings for me at this moment"},
{"time":"01:44.00","timeout":104 ,"lrc":"To soar above this world"},
{"time":"01:46.09","timeout":106 ,"lrc":"Turn into a shooting star that briefly shines but warms up every heart"},
{"time":"01:54.10","timeout":114 ,"lrc":"May all the beauty be blessed"},
{"time":"02:01.06","timeout":121 ,"lrc":"May all the beauty be blessed"},
{"time":"02:09.17","timeout":129 ,"lrc":"I will never go"},
{"time":"02:16.22","timeout":136 ,"lrc":"There's a way back home"},
{"time":"02:23.06","timeout":143 ,"lrc":"Brighter than tomorrow and yesterday"},
{"time":"02:30.17","timeout":150 ,"lrc":"May all the beauty be blessed"},
{"time":"02:43.00","timeout":163 ,"lrc":"Wave good-bye to the past when hope and faith have grown so strong and sound"},
{"time":"02:50.04","timeout":170 ,"lrc":"Unfold this pair of wings for me again"},
{"time":"02:54.12","timeout":174 ,"lrc":"To soar above this world"},
{"time":"02:57.00","timeout":177 ,"lrc":"Turned into a moon that always tells the warmth and brightness of the sun"},
{"time":"03:04.23","timeout":184 ,"lrc":"May all the beauty be blessed"},
{"time":"03:12.00","timeout":192 ,"lrc":"May all the beauty be blessed"},
{"time":"03:19.22","timeout":199 ,"lrc":" 人声录音 : 徐威@52HzStudio"},
{"time":"03:20.43","timeout":200 ,"lrc":" 弦乐 : 龙之艺交响乐团"},
{"time":"03:21.64","timeout":202 ,"lrc":" 混音 : 宫奇Gon"},
{"time":"03:22.84","timeout":203 ,"lrc":" 母带 : 宫奇Gon"},
{"time":"03:24.05","timeout":204 ,"lrc":" Music by HOYO-MiX"}
]
Also see: Tab Triggers