tailwind fix
This commit is contained in:
13
static/js/timeline.js
Normal file
13
static/js/timeline.js
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
function toggleTimeline(id, dot) {
|
||||||
|
const el = document.getElementById(id);
|
||||||
|
|
||||||
|
if (el.style.display === "none") {
|
||||||
|
el.style.display = "block";
|
||||||
|
dot.textContent = "";
|
||||||
|
dot.classList.remove("collapsed");
|
||||||
|
} else {
|
||||||
|
el.style.display = "none";
|
||||||
|
dot.textContent = "+";
|
||||||
|
dot.classList.add("collapsed");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -21,7 +21,15 @@
|
|||||||
href="{{ url_for('static', filename='css/blog.css') }}"
|
href="{{ url_for('static', filename='css/blog.css') }}"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
|
<script>
|
||||||
|
tailwind.config = {
|
||||||
|
corePlugins: {
|
||||||
|
preflight: false,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
|
<script src="{{ url_for('static', filename='js/timeline.js') }}"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user