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> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js"></script> | |
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 | |
if($_GET['action'] == "get") { | |
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; | |
$username = '[email protected]'; | |
$password = ''; | |
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 | |
/* connect to gmail */ | |
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; | |
$username = '****@gmail.com'; | |
$password = 'PASSword'; | |
echo "<script>console.log( 'Debug Objects: " . $username . "' ); </script>"; | |
/* try to connect */ | |
$items = 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
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("#show").hide(); | |
$("#hide").bind("click", hideComments); | |
$("#show").bind("click", showComments); | |
}); |
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() { | |
$(document).on('click', '#add_comment', function() { | |
$("form[name='form']").css("display", "block"); | |
$("#add_comment").hide(); | |
}); | |
$("#done").on("click", function() { |
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
/* Список всех event'ов: */ | |
// ajaxStart — Данный метод вызывается в случае когда побежал AJAX запрос, и при этом других запросов нету | |
// beforeSend — Срабатывает до отправки запроса, позволяет редактировать XMLHttpRequest. Локальное событие | |
// ajaxSend — Срабатывает до отправки запроса, аналогично beforeSend | |
// success — Срабатывает по возвращению ответа, когда нет ошибок ни сервера, ни вернувшихся данных. Локальное событие | |
// ajaxSuccess — Срабатывает по возвращению ответа, аналогично success | |
// error — Срабатывает в случае ошибки. Локальное событие | |
// ajaxError — Срабатывает в случае ошибки | |
// complete — Срабатывает по завершению текущего 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
<script type="text/javascript"> | |
function valid(){ | |
var state =$("input[name='sex']:checked").val(); | |
if(!state) return $("#message").text("Not defined") | |
$('#message').text(state); | |
if (state=="") $('#').show(); | |
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
public class Dao { | |
public Connection con=null; | |
public ResultSet rs = null; | |
public PreparedStatement stmtPrep=null; | |
public String sql; | |
public Connection yhdista() throws Exception{ | |
Connection con = null; | |
String JDBCAjuri = "org.mariadb.jdbc.Driver"; | |
String url = "jdbc:mariadb://localhost:15001/a1700185"; |