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
showError = obj => { | |
switch(obj.errCode){ | |
case '1': | |
return 'No table specified' | |
break | |
case '2': | |
return 'Main table has no 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
<html> | |
<head> | |
<title>Transpose</title> | |
<style> | |
#main{ | |
display: flex; | |
flex-direction: row; | |
color:chartreuse; | |
} | |
@media screen and (max-width:1000px){ |
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
inspect = { | |
isNumber : indexes => { | |
inspect._numberIndexes = indexes | |
return inspect | |
}, | |
setParam : param => { | |
console.log(param) | |
inspect._param = param | |
return inspect | |
}, |
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
isEmail = element => { | |
arr1 = element.split('@') | |
if(arr1.length === 0){ | |
return false | |
}else if(arr1[0].trim() === ""){ | |
return false | |
}else if(arr1[1].trim() === ""){ | |
return false | |
}else{ | |
return true |
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 | |
echo '<h2>yyyy/mm/dd</h2>'; | |
preg_match('/(19[5-9][0-9]|20[0-9][0-9])[\/-](0[1-9]|1[0-2])[\/-](0[1-9]|1[0-9]|2[0-9]|3[01])/','2011/12/30',$match); | |
foreach($match as $key=>$val){ | |
echo $key . ' => ' . $val . '<br>'; | |
} | |
echo '<h2>dd/mm/yyyy</h2>'; | |
preg_match('/(0[1-9]|1[0-9]|2[0-9]|3[01])[\/-](0[1-9]|1[0-2])[\/-](19[5-9][0-9]|20[0-9][0-9])/','30/12/2011',$match); | |
foreach($match as $key=>$val){ |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> | |
</head> | |
<body> | |
<div> | |
<input type="text" name="user" id="user"><br /> | |
<input type="text" name="pass" id="pass"><br /> | |
<button id="submit" >Login</button> | |
</div> |
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
<html> | |
<head>bercanda</head> | |
<body> | |
<form action="index.php" method="post"> | |
Nama <input type="text" name="name"/><br /> | |
Pass <input type="text" name="pass"/> | |
<input type="submit" value="LOGIN"> | |
</form> | |
<?php | |
$users = array( |
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
/* | |
add this to your config.php | |
*/ | |
$config['css']='css_style.css'; |
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
<html> | |
<head> | |
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> | |
<script type="text/javascript" src="vhgrid.main.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$("#mybutton").click(function(){ | |
$("#mytable").createTable(); |
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 options = { | |
theme: true, | |
header: { | |
left: 'prev,next today', | |
center: 'title', | |
right: 'month,agendaWeek,agendaDay' | |
}, | |
timeFormat: { | |
agenda: 'h(:mm)t{ - h(:mm)t}', | |
'': 'h(:mm)t{-h(:mm)t }' |
NewerOlder