Docs Guide
3 menit dibaca
Akses Terbatas
Akses Public
Pageinfo
This is placeholder content.
TIPS
{< tag >}
untuk isi HTML{% tag %}
untuk isi Markdown
Gara-gara perbedaan command tag ini, bisa bikin error atau kacau hasil
Custom
Sudah dicustom untuk penambahan Css dan Javascript, dengan cara:
1. Edit config
Pada config.toml
tambahkan:
2. Struktur
Tata letaknya di folder /static/css
dan /static/js

Keyboard
Single
<div class='keyboard'>ctrl + c</div>
Tag KBD
{ {< kbd ctrl >} } + { {< kbd c >} }
ctrl + c
Alert
Primary
This is a primary.Warning
This is a warning.Info
This is a Info.Dark
This is a dark.Light
This is a light.success
This is a success.Spoiler
Foto
Cara aman letakkan pada folder /static
Normal
Format markdown:

Gambar Tag
Cocok buat model galeri
{ {< gambar src="/foto.jpg" caption="Mican.." alt="kitten" title="Mungil dan Imut" >} }
Photo Tag
Dengan fitur border dan bayangan. Untuk menekankan informasi foto. Atribut caption
untuk mengisi figcaption.
Figcaption css nya belum selesai dibenerin.
{ {< photo src="/images/pedang.jpg" alt="Puncak Pedang" title="Puncak Pedang - Klotok" caption="Puncak Pedang - Klotok" >} }

Figure
Format CSS belum cocok.
{ {< figure src="/images/pedang.jpg" title="Puncak Pedang - Klotok" >} }
Meaw meauw
Mermaid
TAB Card
Tabpane
Card
Content card 1
Content card 2
Content card 3
Hightlight
Html
output:
File
{ {< code file=static/code/examples/ping.js highlight="javascript" >} }
Eksternal
Gist
{ {< gist banghasan 0a3711290e6b6d621d7550e5653a4c01 >} }
<?php | |
/* | |
Simple File untuk Ngetes Send Pesan ke Bot | |
Memiliki banyak kegunaan dan tujuan | |
misalnya ngetes pesan dengan format tertentu, line break, char khusus, dll. | |
bisa dipergunakan juga untuk test hosting, cronjob, dan segala test lainnya. | |
Jika menggunakan mode GET : | |
- Line break (ENTER) = %0A | |
- Space = %20 | |
Atau rawurlencode($string); | |
Contoh dibawah ini menggunakan mode POST. Baris baru cukup dengan \n. | |
* ----------------------- | |
* Grup @botphp | |
* Jika ada pertanyaan jangan via PM | |
* langsung di grup saja. | |
* ---------------------- | |
*/ | |
$TOKEN = "TOKENBOT"; // ganti token ini dengan token bot mu | |
$chatid = "213567634"; // ini id saya di telegram @hasanudinhs silakan diganti dan disesuaikan | |
$pesan = "Helo mas bambang.. \n\neh salah orang, ya maap!"; | |
// ----------- code ------------- | |
$method = "sendMessage"; | |
$url = "https://api.telegram.org/bot" . $TOKEN . "/". $method; | |
$post = [ | |
'chat_id' => $chatid, | |
// 'parse_mode' => 'HTML', // aktifkan ini jika ingin menggunakan format type HTML, bisa juga diganti menjadi Markdown | |
'text' => $pesan | |
]; | |
$header = [ | |
"X-Requested-With: XMLHttpRequest", | |
"User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36" | |
]; | |
// hapus 1 baris ini: | |
die('Hapus baris ini sebelum bisa berjalan, terimakasih.'); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
//curl_setopt($ch, CURLOPT_REFERER, $refer); | |
//curl_setopt($ch, CURLOPT_VERBOSE, true); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, $header); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $post ); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | |
$datas = curl_exec($ch); | |
$error = curl_error($ch); | |
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE); | |
curl_close($ch); | |
$debug['text'] = $pesan; | |
$debug['code'] = $status; | |
$debug['status'] = $error; | |
$debug['respon'] = json_decode($datas, true); | |
print_r($debug); | |
/* | |
* by @hasanudinhs | |
* Telegram @botphp | |
* Last update: 27 Sept 2017 22:53 | |
*/ | |
?> |
{ {< tweet 1428660612091977732 >} }
twitter tiba-tiba error
Ascii Cinema
{ {< asciicast 428738 >} }
Google Slide
Test Presentasi