<div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content"></div>
</div>
</div>
export default {
props: {
image: {
type; String,
default: '/images/placeholder.png'
validator: propValue => {
const hasImagesDirectory = propValue.indexOf('/images/') > -1
const isPNG = propValue.endsWith('.png')
const isJPEG = propValue.endsWith('.jpeg') || propValue.endsWith('.jpg')
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
// required moment.js | |
$('#datepicker').datepicker({ | |
autoclose: true, | |
todayHighlight: true, | |
format: 'dd/mm/yyyy', | |
language: 'th', | |
startDate: moment(rangDateStart).format('DD/MM/YYYY'), | |
endDate: moment(rangDateEnd).format('DD/MM/YYYY') | |
}); |
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 readURL(input) { | |
if (input.files.length > 1) { | |
var htmlPreview = $('#preview-files'); | |
htmlPreview.html(""); | |
$.each(input.files, function(i, v) { | |
var filename = v.name; | |
var filetype = v.type; |
moment().add(543, 'years').format('L');
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<form> | |
<div class="form-group"> |
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
// Host runing https: | |
var port = 3000; | |
var express = require('express'); | |
var fs = require("fs"); | |
var cert = { | |
key: fs.readFileSync('./cert/x.key'), | |
cert: fs.readFileSync('./cert/x.cer') | |
}; | |
var app = express() | |
, http = require('http').createServer(app) |
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 | |
error_reporting(E_ALL); | |
// Attachments Form : | |
// $data = array( | |
// 'attachments' => array( | |
// 0 => array( | |
// 'fallback' => 'Required plain-text summary of the attachment.', | |
// 'color' => '#36a64f', | |
// 'pretext' => 'Optional text that appears above the attachment block', |
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 | |
$apiToken = ""; // Your Token | |
$chat_id = ""; // Your Chat ID | |
$text = $_GET['text']; | |
// V1 | |
/* | |
$params = [ | |
'chat_id' => $chat_id, |