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
body { | |
html:not(.dont-overflow-hidden-site-root) & #site-root { | |
overflow: hidden; | |
} | |
} |
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
body { | |
html:not(.dont-overflow-hidden-site-root) & #site-root { | |
overflow: hidden; | |
} | |
} |
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
.element { | |
&.look-i-have-also-this-class { | |
background: 'red'; | |
} | |
.my-parent-has-this-class & { | |
background: 'red'; | |
} | |
} |
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
.header-m-mobile { | |
$font-size: 24; | |
$line-height: 1.33; | |
font-size: $font-size; | |
line-height: #{round($font-size * $line-height)}px; | |
} | |
@mixin text($font-size, $line-height) { | |
font-size: $font-size; | |
line-height: #{round($font-size * $line-height)}px; |
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
import wixData from 'wix-data'; | |
import _ from 'lodash'; | |
$w.onReady(function () { | |
const getDataPromise = wixData.query('views').find(); | |
// The iframe is ready | |
$w('#html1').onMessage(async ({ data }) => { | |
if (data.type === 'ready') { | |
const results = await getDataPromise; |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<script | |
type="text/javascript" | |
src="https://www.gstatic.com/charts/loader.js" | |
></script> | |
<div id="chart_div"></div> | |
<siv id="loading">Loading...</siv> |
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
const select = $("#pipe_name" + j) | |
.select2({ | |
placeholder: '-- Choose Pipe Name --', | |
theme: "bootstrap", | |
width: '100%' | |
}) | |
.html(''); | |
.append('<option value="">-- Choose Pipe Name --</option>'); | |
$.ajax({ |
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
const App = () => { | |
const [isLoadgin, setIsLoading] = useState(true) | |
const [cardInfo, setCardInfo] = useContext(CardInfoContext) | |
useEffect(() => { | |
fetchData(result => { | |
setCardInfo(result); | |
setIsLoading(false); | |
}) | |
}, []) |
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
{% highlight html linenos %} | |
<button>do alert</button> | |
<script> | |
document.querySelector('button').addEventListener('click', () => { | |
alert('clicked'); | |
}) | |
</script> | |
{% endhighlight %} |
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
// run it in the console | |
JSON.parse(ytplayer.config.args.player_response).streamingData.formats.sort((a, b) => a.width - b.width).pop().url |
NewerOlder