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
p { | |
white-space: pre-line; | |
} |
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
$(document).on('click', '.checkboxClass', function () { | |
if($(this).val().includes("none")) { | |
cr_val = $(this).val(); | |
ch_nm = $(this).attr('name'); | |
$("input[name='"+ch_nm+"'][value!='"+cr_val+"']").prop("checked",false); | |
} else { | |
ch_nm = $(this).attr('name'); | |
$("input[name='"+ch_nm+"']").each( function() { | |
console.log($(this).val()); | |
if($(this).val().includes("none")) { |
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
var th = $(this); | |
th.closest('.summary-input-div').nextAll('.summary-input-div:visible').first().find("input").focus(); | |
// find any closest parent div | |
- closest(); | |
// find any closest child div | |
- find(); | |
// find only div which are visible in dom |
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
if ($("#h1").css("color") == "rgb(0, 128, 0)") { | |
down.innerHTML = "H1 has CSS style, color: green"; | |
} else { | |
down.innerHTML = "H1 has not CSS style, color: green"; | |
} |
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
//ipad pro | |
//@media(min-width:1023px) and (max-width:1200px) { | |
//} | |
---:New:---- | |
.shadow-box { | |
background: #fff; | |
box-shadow: 0 4px 24px 0 rgb(34 41 47 / 10%); | |
} | |
/* Mobile devices */ |
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
<style> | |
.icon { | |
position: absolute; | |
right: 12px; | |
top: 50%; | |
transform: translateY(-50%); | |
} | |
</style> | |
<div class="form-group" style="position: relative"> |
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
<!-- Array | |
( | |
[0] => Array | |
( | |
[form_id] => 224 | |
) | |
[1] => Array | |
( | |
[form_id] => 237 |
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
/*Remove up down arroww from number field start*/ | |
/* Chrome, Safari, Edge, Opera */ | |
input[type="number"]::-webkit-outer-spin-button, | |
input[type="number"]::-webkit-inner-spin-button { | |
-webkit-appearance: none !important; | |
-moz-appearance: none !important; | |
appearance: none !important; | |
margin: 0 !important; | |
} |
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
<!-- country codes (ISO 3166) and Dial codes. --> | |
<select name="countryCode" id=""> | |
<option data-countryCode="GB" value="44" Selected>UK (+44)</option> | |
<option data-countryCode="US" value="1">USA (+1)</option> | |
<optgroup label="Other countries"> | |
<option data-countryCode="DZ" value="213">Algeria (+213)</option> | |
<option data-countryCode="AD" value="376">Andorra (+376)</option> | |
<option data-countryCode="AO" value="244">Angola (+244)</option> | |
<option data-countryCode="AI" value="1264">Anguilla (+1264)</option> | |
<option data-countryCode="AG" value="1268">Antigua & Barbuda (+1268)</option> |
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
submitFormOkay = false; | |
$(document.body).on("click", "a", function() { | |
submitFormOkay = true; | |
}); | |
window.onbeforeunload = function(event) { | |
event.preventDefault(); | |
if (!submitFormOkay) { | |
window.setTimeout(function () { | |
window.location = "{!!LaravelLocalization::localizeURL('/dashboard')!!}"; | |
}, 0); |