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 detectBraveBrowser = () => { | |
return new Promise((resolve, reject) => { | |
if(!navigator.userAgent.includes('Chrome')) { return resolve(false); } | |
const xhr = new XMLHttpRequest(); | |
const onload = () => { | |
if(xhr.status >= 200 && xhr.status < 300) { | |
const response = JSON.parse(xhr.responseText); | |
if(!response) { return resolve(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
ol.start { | |
counter-reset: mainSection; | |
} | |
ol.split { | |
list-style-type: none; | |
} | |
ol.split li:before { | |
counter-increment: mainSection; |
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 | |
function create_square_thumbnails($userfile_name, $userfile_type) | |
{ | |
//get the file and figure out what type of file it is and some of its attributes | |
switch ($userfile_type) | |
{ | |
case "image/pjpeg": $tempbig = imagecreatefromjpeg(IMG_PATH.$userfile_name); break; | |
case "image/jpeg": $tempbig = imagecreatefromjpeg(IMG_PATH.$userfile_name); break; | |
case "image/jpg": $tempbig = imagecreatefromjpeg(IMG_PATH.$userfile_name); break; | |
case "image/gif": $tempbig = imagecreatefromgif(IMG_PATH.$userfile_name); break; |
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> | |
<head> | |
<title>Google Map Example</title> | |
<style> | |
html, | |
body, | |
#my-map { | |
height: 100vh; |
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
(function() { | |
var doc = document.documentElement; | |
doc.setAttribute('data-useragent', navigator.userAgent); | |
})(); |
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
<ul class="unstyled-list"> | |
<li>list item</li> | |
<li><a href="#" alt="">list item</a></li> | |
<li> | |
<strong>list item</strong> | |
<ul> | |
<li>sub list item</li> | |
<li>sub list item</li> | |
</ul> | |
</li> |
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
<div class="container"> | |
<div class="row"> | |
<div class="column-11 push-1"> | |
<p>.push-1</p> | |
</div> <!-- end .column-1 --> | |
</div> <!-- end .row --> | |
<div class="row"> | |
<div class="column-10 push-2"> | |
<p>.push-2</p> |
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
<div class="container"> | |
<div class="row"> | |
<div class="column-12"> | |
<p>.column-12</p> | |
<div class="row gutters"> | |
<div class="column-4"> | |
<p>.column-4</p> | |
</div> <!-- end .column-4 --> |
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
<div class="container"> | |
<div class="row gutters"> | |
<div class="column-1"> | |
<p>.column-1</p> | |
</div> <!-- end .column-1 --> | |
<div class="column-11"> | |
<p>.column-11</p> | |
</div> <!-- end .column-11 --> | |
</div> <!-- end .row --> |
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
<div class="container"> | |
<div class="row"> | |
<div class="column-1"> | |
<p>.column-1</p> | |
</div> <!-- end .column-1 --> | |
<div class="column-11"> | |
<p>.column-11</p> | |
</div> <!-- end .column-11 --> | |
</div> <!-- end .row --> |
NewerOlder