差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
start [2020/04/20 08:52] – ともやん | start [2023/09/10 13:25] (現在) – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
< | < | ||
- | <script src="/_media/javascript/requirejs/require-2.3.6.min.js? | + | <script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.min.js"></ |
- | < | + | <script src="/ |
- | self.DEBUG = true; | + | |
- | | + | |
- | <script src="/ | + | |
- | <!-- | + | |
- | < | + | |
- | .char-svg { | + | |
- | position: fixed; | + | |
- | width: 509px; | + | |
- | height: 415px; | + | |
- | background-image: | + | |
- | background-repeat: no-repeat; | + | |
- | top: auto; | + | |
- | left: 0; | + | |
- | right: 0; | + | |
- | bottom: 0; | + | |
- | margin: 0 auto; | + | |
- | z-index: -1; | + | |
- | opacity: | + | |
- | } | + | |
- | </ | + | |
- | < | + | |
- | const $ = jQuery; | + | |
- | $(() => { | + | |
- | $('# | + | |
- | }); | + | |
- | | + | |
- | --> | + | |
<!-- Tomoyan.net Vue.js app start --> | <!-- Tomoyan.net Vue.js app start --> | ||
+ | < | ||
< | < | ||
# | # | ||
- | overflow-x: | + | overflow-x: |
+ | } | ||
+ | # | ||
+ | font-size: 12px; | ||
+ | line-height: | ||
} | } | ||
# | # | ||
行 38: | 行 16: | ||
} | } | ||
.font_half { | .font_half { | ||
- | font-size: | + | font-size: |
} | } | ||
</ | </ | ||
</ | </ | ||
====== ようこそ、ともやん・どっと・ねっとへ!! ====== | ====== ようこそ、ともやん・どっと・ねっとへ!! ====== | ||
- | {{:mg_chara.png? | + | {{mg_chara.png? |
====== 確認くん ====== | ====== 確認くん ====== | ||
- | お出掛け前のチェックにどうぞ。\\ | + | お出掛け前のチェックにどうぞ💁♂️\\ |
+ | < | ||
<WRAP prewrap 100% # | <WRAP prewrap 100% # | ||
< | < | ||
- | <div id="tomoyan_net_app"> | + | <div id="tomoyan_net-app"> |
</ | </ | ||
- | ^ IP アドレス (IPv4)\\ < | + | ^ IP アドレス (< |
^ ゲートウェイ名\\ < | ^ ゲートウェイ名\\ < | ||
- | ^ CPU Cores\\ < | + | ^ CPU Cores\\ < |
- | ^ [[https:// | + | ^ [[https:// |
- | ^ ダークモード\\ < | + | ^ ダークモード\\ < |
- | ^ [[https:// | + | ^ [[https:// |
+ | ^ [[https:// | ||
< | < | ||
</ | </ | ||
<!-- Tomoyan.net Vue.js app end --> | <!-- Tomoyan.net Vue.js app end --> | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | const { createApp } = Vue | ||
+ | let ua_parser; | ||
+ | const tomoyan_net_app = createApp({ | ||
+ | data() { | ||
+ | return { | ||
+ | remote_addr: | ||
+ | cpu_cores: '', | ||
+ | display_resolution: | ||
+ | browser_resolution: | ||
+ | user_agent: navigator.userAgent, | ||
+ | ua_parser: '', | ||
+ | versions: '', | ||
+ | vue_ver: Vue.version, | ||
+ | } | ||
+ | }, | ||
+ | created() { | ||
+ | this.get_display_resolution(); | ||
+ | this.get_cpu_cores() | ||
+ | |||
+ | window.UAParser = UAParser; | ||
+ | let ua_result = ua_parser = new UAParser(); | ||
+ | let ua_json = ua_result.getResult(); | ||
+ | this.ua_parser = JSON.stringify(ua_json, | ||
+ | |||
+ | this.versions = ' | ||
+ | ' | ||
+ | }, | ||
+ | computed: { | ||
+ | ip_ver() { | ||
+ | return REMOTE_ADDR.indexOf(':' | ||
+ | }, | ||
+ | dark_mode() { | ||
+ | if (matchMedia(' | ||
+ | return ' | ||
+ | } | ||
+ | else { | ||
+ | return matchMedia(' | ||
+ | } | ||
+ | }, | ||
+ | }, | ||
+ | methods: { | ||
+ | get_display_resolution() { | ||
+ | this.display_resolution = screen.width + ' x ' + screen.height; | ||
+ | this.browser_resolution = window.innerWidth + ' x ' + window.innerHeight; | ||
+ | }, | ||
+ | get_cpu_cores() { | ||
+ | this.cpu_cores = (!!navigator.hardwareConcurrency ? | ||
+ | navigator.hardwareConcurrency : | ||
+ | '' | ||
+ | }, | ||
+ | }, | ||
+ | mounted() { | ||
+ | window.onload = () => { | ||
+ | let diffLoadTime = Date.now() - startTime; | ||
+ | console.log(' | ||
+ | } | ||
+ | / | ||
+ | let diffReadyTime = Date.now() - startTime; | ||
+ | console.log(' | ||
+ | }*/ | ||
+ | }, | ||
+ | setup() { | ||
+ | window.addEventListener(' | ||
+ | }, | ||
+ | beforeDestroy() { | ||
+ | window.removeEventListener(' | ||
+ | }, | ||
+ | }).mount('# | ||
+ | </ | ||
</ | </ | ||
</ | </ | ||
- | <ifauth @dokuwikiusers> | + | <ifauth @internal_users> |
====== Dokuwiki Top (内部) ====== | ====== Dokuwiki Top (内部) ====== | ||
^DokuWikiの使い方^^ | ^DokuWikiの使い方^^ | ||
- | |[[playground: | + | |[[playground: |
^ 生活 ^^^ | ^ 生活 ^^^ | ||
- | |[[confidential_area: | + | |[[internal_users_area:pharmacy|💊お薬関連]] |
- | |[[confidential_area: | + | |[[internal_users_area: |
</ | </ | ||
<ifauth @confidential> | <ifauth @confidential> | ||
- | [[doku_maintenance|DokuWikiメンテ部屋]]\\ | + | [[doku_maintenance|🛠DokuWikiメンテ部屋]]\\ |
^ その他 ^^^ | ^ その他 ^^^ | ||
- | |[[confidential_area|機密領域]] | + | |[[confidential_area|🔑機密領域]] |
- | |[[kodomo_area|子供向けサーバー構築]] | + | |[[kodomo_area|👶子供向けサーバー構築]] |
- | </ | + | |
- | + | ||
- | <ifauth @confidential_sub> | + | |
- | ^ その他 ^^^ | + | |
- | |[[confidential_area|機密領域]] | + | |
</ | </ | ||
====== Dokuwiki Top ====== | ====== Dokuwiki Top ====== | ||
<php> | <php> | ||
- | function curlGet($url) { | + | function curlGet($url, $referer='' |
$curl = curl_init(); | $curl = curl_init(); | ||
| | ||
行 95: | 行 143: | ||
curl_setopt($curl, | curl_setopt($curl, | ||
curl_setopt($curl, | curl_setopt($curl, | ||
+ | curl_setopt($curl, | ||
| | ||
$response = curl_exec($curl); | $response = curl_exec($curl); | ||
行 103: | 行 152: | ||
//$json = curlGet(' | //$json = curlGet(' | ||
- | $json = curlGet(' | + | //$json = curlGet(' |
- | $json = mb_convert_encoding($json, ' | + | //$json = curlGet(' |
+ | $html = curlGet(' | ||
+ | //$html = curlGet(' | ||
+ | $html = mb_convert_encoding($html, ' | ||
+ | preg_match_all('/ | ||
+ | $html = $matchs[' | ||
+ | $json = json_encode($matchs[' | ||
+ | //$json = json_decode($matchs[' | ||
//$usdjpy = json_decode($json, | //$usdjpy = json_decode($json, | ||
- | $usdjpy = json_decode($json, | + | echo '< |
+ | echo 'var quotes = ' . $json . ';'; | ||
+ | echo '</ | ||
+ | $usdjpy = []; //json_decode($json, | ||
+ | $cnhjpy = []; // | ||
+ | // | ||
+ | // | ||
+ | // | ||
// | // | ||
行 119: | 行 183: | ||
// finance.yahoo.co.jp | // finance.yahoo.co.jp | ||
- | echo '< | + | echo '< |
- | echo '< | + | |
+ | echo '< | ||
+ | echo '< | ||
+ | echo '< | ||
echo '< | echo '< | ||
echo '< | echo '< | ||
echo '< | echo '< | ||
echo '< | echo '< | ||
- | echo '< | + | echo '< |
+ | echo '</ | ||
+ | |||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | |||
+ | echo '</ | ||
</ | </ | ||
+ | < | ||
^ 関連サイト | ^ 関連サイト | ||
- | | [[https:// | + | | [[https:// |
^ DokuWikiの使い方 | ^ DokuWikiの使い方 | ||
- | | [[wiki: | + | | [[wiki: |
- | | [[http:// | + | | [[http:// |
- | ^ 技術資料 | + | ^ カテゴリー別 |
- | | [[linux|Linux 関連]] | + | ^ OS |
- | | [[mac|Mac 関連]] | + | | [[linux|🐣Linux 関連]] |
- | | [[windows|Windows 関連]] | + | | [[mac|🍔🍟Mac 関連]] |
- | | [[python|Python | + | | [[windows|🍱Windows 関連]] |
- | | [[html_css|HTML5 + CSS3 関連]] | + | ^ 言語 |
- | | [[database|データベース関連]] | + | | [[python|🐍Python |
+ | | [[html_css|🚾HTML + CSS 関連]] | ||
+ | | [[golang|🐭Go | ||
+ | ^ テクノロジ | ||
+ | | [[web|Web 関連]] | ||
+ | | [[algorithm|アルゴリズム]] | ||
| [[ai|人工知能関連]] | | [[ai|人工知能関連]] | ||
+ | ^ その他 | ||
+ | | [[mathematics|数学関連]] | ||
+ | | [[electronics|電子工学関連]] | ||
^ 生活 | ^ 生活 | ||
- | | [[cooking|ハッカ~♪のお料理]] | + | | [[cooking|🍳ハッカ~♪ のお料理]] |
- | | [[https:// | + | | [[lifehacker|🏡ハッカ~♪ |
^ 金融 | ^ 金融 | ||
| [[currency|通貨関連]] | | [[currency|通貨関連]] | ||
- | < | + | \\ |
- | < | + | このサイトを広告なしで見るには...\\ |
- | let tomoyan_net_app; | + | [[web:vivaldi|Vivaldi |
- | require([' | + | [[web:brave|Brave - プライバシーを重視した高速かつ安全な次世代ブラウザ]]\\ |
- | tomoyan_net_app = new Vue({ | + | の利用をお勧めします😉\\ |
- | el: '# | + | |
- | data: { | + | |
- | user_agent: navigator.userAgent, | + | |
- | display_resolution: | + | |
- | }, | + | |
- | created: function() { | + | |
- | this.set_display_resolution(); | + | |
- | }, | + | |
- | computed: { | + | |
- | cpu_cores: function() { | + | |
- | let cpu_cores = (!!navigator.hardwareConcurrency ? | + | |
- | navigator.hardwareConcurrency | + | |
- | '' | + | |
- | let cpu_cores_tr = this.$el.querySelector('# | + | |
- | + | ||
- | if (cpu_cores == '' | + | |
- | // | + | |
- | // | + | |
- | cpu_cores = ' | + | |
- | } | + | |
- | else { | + | |
- | cpu_cores += ' core'; | + | |
- | } | + | |
- | + | ||
- | return cpu_cores; | + | |
- | }, | + | |
- | dark_mode: function() { | + | |
- | if (matchMedia(' | + | |
- | return ' | + | |
- | } | + | |
- | else { | + | |
- | return matchMedia(' | + | |
- | } | + | |
- | }, | + | |
- | }, | + | |
- | methods: { | + | |
- | set_display_resolution: | + | |
- | const display_resolution = | + | |
- | screen.width + ' x ' + screen.height + ' pixel ' + | + | |
- | ' | + | |
- | + | ||
- | this.display_resolution = display_resolution; | + | |
- | }, | + | |
- | }, | + | |
- | mounted: function() { | + | |
- | window.addEventListener(' | + | |
- | }, | + | |
- | beforeDestroy: | + | |
- | window.removeEventListener(' | + | |
- | }, | + | |
- | }); | + | |
- | }); | + | |
- | </ | + | |
- | </ | + | |
- | このサイトを広告なしで見るには [[web: |