This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
import { onMounted, ref } from 'vue'; | |
let th = ref('light'); | |
th.value = localStorage.getItem('theme-xxx-theme') ?? 'light'; | |
function update() { | |
document.querySelector('html').setAttribute('color-scheme', th.value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template></template> | |
<script setup> | |
import { useI18n } from 'vue-i18n'; | |
import { watch, onMounted } from 'vue'; | |
const { t, locale } = useI18n({ useScope: 'global' }); | |
const props = defineProps({ | |
title: { | |
type: String, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template></template> | |
<script setup> | |
import { watch, onMounted } from 'vue'; | |
import { useI18n } from 'vue-i18n'; | |
const { t, locale } = useI18n({ useScope: 'global' }); | |
const props = defineProps({ | |
description: { | |
type: String, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
import { onBeforeMount } from 'vue'; | |
let props = defineProps({ | |
image: { type: String, default: '/default/default.webp' }, | |
}); | |
onBeforeMount(() => { | |
const img = new Image(); | |
img.src = props.image; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Line numbers css | |
<pre> | |
<code> | |
<span class="line">Line 1</span> | |
<span class="line">Line 2</span> | |
<span class="line">Line 3</span> | |
</code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Validate; | |
use Throwable; | |
use DOMDocument; | |
/** | |
* Dla artykułu na bloga | |
* Zapisz normalnie html z textarea do bazy danych w laravelu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$code = '<h1>Article title goes here</h1> | |
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate iste blanditiis ratione possimus in eum. Dolore assumenda eos, qui quia illo cumque ab recusandae dolor itaque nemo, tenetur minima doloribus?</p> | |
<style>pre {background: #fafafa; color: #010101;font-family:consolas;font-size:16px}</style> | |
<pre> | |
<code wow="error"> | |
<span style="color: red;">Hello</span> | |
<?php | |
echo "hello from js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
import { ref } from 'vue'; | |
function htmlEntities(str) { | |
return String(str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"'); | |
} | |
let code = ref(` | |
<span style="color: red;">Hello</span> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @tailwind base; | |
@tailwind components; | |
@tailwind utilities; */ | |
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); | |
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap'); | |
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap'); | |
:root { | |
--bw-text-1: #0f0f0f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @tailwind base; | |
@tailwind components; | |
@tailwind utilities; */ | |
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); | |
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap'); | |
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap'); | |
:root { | |
--color-gray-50: #fafafa; |