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).ready(function() { | |
function heightDetect(){ | |
$('.main_head').css('height', $(window).height()); | |
}; | |
heightDetect(); | |
$(window).resize(function(){ | |
heightDetect(); | |
}) | |
}); //endReady |
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> | |
$("form.form").submit(function () { | |
let th = $(this); | |
let inputNumber = th.find('input[name=tel]').val(); | |
if(inputNumber.length < 17) return false; | |
th.find('button[type="submit"]').attr('disabled', 'true'); | |
$.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
function sliceWords() { | |
let line = document.querySelectorAll('.secten_block_items_doc p'); | |
function cutWords(str, max = 20) { | |
str.forEach((el) => { | |
if(el.textContent.length > max) { | |
let string = el.textContent.trim().split(' ').slice(0, max).join() + ' ...'; | |
el.innerHTML = string; | |
} | |
}) | |
return str |
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
.elementHidden{ | |
border: none; | |
clip: rect(0 0 0 0); | |
height: 1px; | |
margin: -1px; | |
overflow: hidden; | |
padding: 0; | |
position: absolute; | |
width: 1px; | |
} |