Skip to content

Instantly share code, notes, and snippets.

@hanahina
hanahina / index.pug
Created November 9, 2020 03:46
scroll in x-axis with owl carousel
#wrapper
.list-wrapper
ul.default-list.owl-carousel
-for (i = 0; i < 20; i++)
li.default-list-item
.default-list-preview
a(href="javascript:;")
img(src="https://picsum.photos/200?random"+i+1, alt="")
.default-list-content
h3.default-list-title
@hanahina
hanahina / markdownInBlogger.js
Last active March 14, 2019 03:17
在Google Blogger中使用Markdown語法
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.6.4/showdown.min.js"></script>
<script>
var converter = new showdown.Converter();
var posts = document.querySelectorAll(".post-body");
//定義要替換的字元
var insteadWords = {
"&gt;": ">",
"&lt;": "<",
"&amp;": "&"
};