This file contains hidden or 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 submitAnswers() { | |
var score = 0, total = 5; | |
var q1 = document.forms["quizForm"]["q1"].value; | |
var q2 = document.forms["quizForm"]["q2"].value; | |
var q3 = document.forms["quizForm"]["q3"].value; | |
var q4 = document.forms["quizForm"]["q4"].value; | |
var q5 = document.forms["quizForm"]["q5"].value; | |
console.log(q1,q2,q3,q4,q5); |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test</title> | |
<link rel="stylesheet" type="text/css" href="../dist/css/bootstrap.min.css"> | |
<style> | |
body { | |
padding: 40px; | |
} |
This file contains hidden or 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>jQuery Crash Course | Events</title> | |
<style> | |
body{ | |
font-size: 17px; | |
font-family: arial; | |
background: #f4f4f4; | |
line-height: 1.5em; |
This file contains hidden or 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>jQuery Crash Course | Selectors</title> | |
<style> | |
body{ | |
font-size: 17px; | |
font-family: arial; | |
background: #f4f4f4; | |
line-height: 1.5em; |
This file contains hidden or 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 | |
class Category extends Model { | |
//each category might have one parent | |
public function parent() { | |
return $this->belongsToOne(static::class, 'cat_parent_id'); | |
} | |
//each category might have multiple children | |
public function children() { | |
return $this->hasMany(static::class, 'cat_parent_id')->orderBy('cat_name', 'asc'); |
This file contains hidden or 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"> | |
<h1 class="text-center">Js - 2 dars</h1> | |
<div class="card bg-light mb-3 w-50 mx-auto"> | |
<div class="card-header">Valyuta aiyirboshlash kalculyatori</div> | |
<div class="card-body"> | |
<h5 class="card-title">Summani kiriting</h5> | |
<div class="form-group"> | |
<input type="text" name="summa" class="form-control" id="summa" autofocus="true"> | |
</div> | |
<p class="text-center"> |
This file contains hidden or 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 | |
use Faker\Generator as Faker; | |
$factory->define(App\Comment::class, function (Faker $faker) { | |
return [ | |
'article_id' => $faker->numberBetween(1,200), | |
'author_id' => $faker->numberBetween(1,100), | |
'body' => $faker->text() | |
]; |
This file contains hidden or 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
$factory->define(App\Article::class, function (Faker $faker) { | |
return [ | |
'author_id' => $faker->numberBetween(1,100), | |
'title' => $faker->sentence() | |
]; | |
}); |
This file contains hidden or 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 | |
use Faker\Generator as Faker; | |
$factory->define(App\People::class, function (Faker $faker) { | |
return [ | |
'first_name' => $faker->firstName, | |
'last_name' => $faker->lastName, | |
'twitter' => '@'.$faker->userName | |
]; |
This file contains hidden or 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
JSON-RPC 2.0 Спецификация | |
Дата создания: | |
2010-03-26 (в зависимости от версии 2009-05-24) | |
Обновлено: | |
2013-01-04 | |
Автор: | |
Рабочая группа JSON-RPC <[email protected]> | |
Содержание | |
Обзор |