Safari :全屏之后,“显示”菜单中去掉“始终在全屏中显示工具栏”的对勾。
Chrome :全屏之后,“视图”菜单中选择“采用全屏模式时隐藏工具栏”。
<?php | |
$token = bin2hex(random_bytes(16)); |
if (performance.getEntriesByType("navigation")[0].type === 'back_forward') { | |
// do something. | |
} |
$.fn.reverseChildren = function() { | |
return this.each(function(){ | |
var $this = $(this); | |
$this.children().each(function(){ $this.prepend(this) }); | |
}); | |
}; | |
$('#target').reverseChildren(); |
<!DOCTYPE html> | |
<html> | |
<body> | |
<a href="https://www.google.com/">Google</a> | |
<a href="https://www.youtube.com/">Youtube</a> | |
<script> | |
function clickRedirectHandler(e) { |
f = open('file', mode='r', encoding='utf-8-sig') | |
f.read() | |
# set encoding='utf-8-sig' is the key point. |
PRAGMA table_info(tablename); |
# It requires mdbtools. | |
from subprocess import Popen, PIPE | |
import subprocess | |
import sqlite3 | |
def run_cmd(cmd): | |
p = Popen(cmd, stdout=PIPE, stderr=PIPE) | |
output, error = p.communicate() | |
output = str(output, 'utf-8') |
function show_dollar(num) { | |
return '$' + num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,') | |
} |
Safari :全屏之后,“显示”菜单中去掉“始终在全屏中显示工具栏”的对勾。
Chrome :全屏之后,“视图”菜单中选择“采用全屏模式时隐藏工具栏”。
click the menu of Install App
on the left side navigations.