Skip to content

Instantly share code, notes, and snippets.

@hanahina
hanahina / index.pug
Created Nov 9, 2020
scroll in x-axis with owl carousel
View index.pug
#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 Mar 14, 2019
在Google Blogger中使用Markdown語法
View markdownInBlogger.js
<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;": "&"
};