This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
<?php | |
namespace Drupal\JobApplication\Form; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; | |
class ApplyForm extends FormBase | |
{ |
$username = 'username123'; | |
$password = 'azerty321'; | |
$email = 'example@example.com'; | |
if (username_exists($username) == null && email_exists($email) == false) { | |
$user_id = wp_create_user( $username, $password, $email ); | |
$user = get_user_by( 'id', $user_id ); | |
$user->remove_role( 'subscriber' ); | |
$user->add_role( 'author' ); | |
} |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
.container{ |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<input type="button" value="next" onclick="change()" /> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.css"/> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.full.min.js"></script> | |
<script> | |
$(function () { | |
$('.datedefaulthourpicker').datetimepicker({ |
function getCardType(cardNum) { | |
if(!luhnCheck(cardNum)){ | |
return ""; | |
} | |
var payCardType = ""; | |
var regexMap = [ | |
{regEx: /^4[0-9]{5}/ig,cardType: "VISA"}, | |
{regEx: /^5[1-5][0-9]{4}/ig,cardType: "MASTERCARD"}, | |
{regEx: /^3[47][0-9]{3}/ig,cardType: "AMEX"}, |
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
.rect{ | |
cursor: default; | |
display: block; | |
width: 400px; | |
height: 140px; | |
background-color: lightblue; |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.js"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<label>Name</label> <input type="text" id="name" v-model="newBook.name" /> <br /> | |
<label>Author</label> <input type="text" id="author" v-model="newBook.author" /> <br /> | |
<label>Pages</label> <input type="text" id="author" v-model="newBook.totalPages" /> <br /> |