差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| start [2021/07/12 11:35] – ともやん | start [2025/12/13 13:44] (現在) – ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| < | < | ||
| - | <script src="/_media/javascript/requirejs/require-2.3.6.min.js? | + | <script src="https://cdn.jsdelivr.net/npm/vue/ |
| - | <script> | + | |
| - | | + | <script src="https://cdn.jsdelivr.net/npm/ua-parser-js@1.0.39/ |
| - | var startTime = (new Date()).getTime(); | + | |
| - | | + | |
| - | <script src="/_media/javascript/requirejs/settings.js? | + | |
| <!-- Tomoyan.net Vue.js app start --> | <!-- Tomoyan.net Vue.js app start --> | ||
| + | < | ||
| < | < | ||
| # | # | ||
| overflow-x: scroll; | overflow-x: scroll; | ||
| + | } | ||
| + | # | ||
| + | font-size: 12px; | ||
| + | line-height: | ||
| } | } | ||
| # | # | ||
| 行 15: | 行 17: | ||
| } | } | ||
| .font_half { | .font_half { | ||
| - | font-size: | + | font-size: |
| } | } | ||
| </ | </ | ||
| 行 22: | 行 24: | ||
| {{mg_chara.png? | {{mg_chara.png? | ||
| - | ====== 確認くん ====== | + | ====== |
| + | [[dog: | ||
| + | 日本传统医学和草药疗法、汉方(日本草药)及其在犬类肾脏疾病中的应用😍\\ | ||
| + | ====== ✔️確認くん ====== | ||
| お出掛け前のチェックにどうぞ💁♂️\\ | お出掛け前のチェックにどうぞ💁♂️\\ | ||
| < | < | ||
| <WRAP prewrap 100% # | <WRAP prewrap 100% # | ||
| < | < | ||
| - | <div id="tomoyan_net_app"> | + | <div id="tomoyan_net-app"> |
| </ | </ | ||
| - | ^ IP アドレス (< | + | ^ IP アドレス (< |
| ^ ゲートウェイ名\\ < | ^ ゲートウェイ名\\ < | ||
| - | ^ CPU Cores\\ < | + | ^ CPU Cores\\ < |
| - | ^ [[https:// | + | ^ [[https:// |
| - | ^ ダークモード\\ < | + | ^ ダークモード\\ < |
| - | ^ [[https:// | + | ^ Vendor\\ < |
| - | <php>echo '<input id=" | + | ^ [[https:// |
| + | ^ [[https:// | ||
| < | < | ||
| </ | </ | ||
| <!-- Tomoyan.net Vue.js app end --> | <!-- Tomoyan.net Vue.js app end --> | ||
| + | </ | ||
| + | <php> | ||
| + | echo '< | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | "use strict"; | ||
| + | const { createApp } = Vue | ||
| + | | ||
| + | let ua_parser; | ||
| + | const tomoyan_net_app = createApp({ | ||
| + | data() { | ||
| + | return { | ||
| + | cpu_cores: '', | ||
| + | display_resolution: | ||
| + | browser_resolution: | ||
| + | user_agent: navigator.userAgent, | ||
| + | vendor: navigator.vendor, | ||
| + | ua_parser: '', | ||
| + | versions: '', | ||
| + | vue_ver: Vue.version, | ||
| + | } | ||
| + | }, | ||
| + | async created() { | ||
| + | this.remote_addr = REMOTE_ADDR.indexOf(':' | ||
| + | window.addEventListener(' | ||
| + | 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 : | ||
| + | '' | ||
| + | }, | ||
| + | async get_ip4addr() { | ||
| + | // https:// | ||
| + | let ip4addr; | ||
| + | try { | ||
| + | ip4addr = (await (await fetch(' | ||
| + | } | ||
| + | catch (error) { | ||
| + | console.error(error); | ||
| + | ip4addr = error; | ||
| + | } | ||
| + | return ip4addr; | ||
| + | }, | ||
| + | }, | ||
| + | mounted() { | ||
| + | window.onload = () => { | ||
| + | let diffLoadTime = Date.now() - startTime; | ||
| + | console.log(' | ||
| + | } | ||
| + | / | ||
| + | let diffReadyTime = Date.now() - startTime; | ||
| + | console.log(' | ||
| + | }*/ | ||
| + | }, | ||
| + | beforeDestroy() { | ||
| + | window.removeEventListener(' | ||
| + | }, | ||
| + | }).mount('# | ||
| + | </ | ||
| </ | </ | ||
| </ | </ | ||
| <ifauth @internal_users> | <ifauth @internal_users> | ||
| - | ====== Dokuwiki Top (内部) ====== | + | ====== |
| ^DokuWikiの使い方^^ | ^DokuWikiの使い方^^ | ||
| - | |[[playground: | + | |[[playground: |
| ^ 生活 ^^^ | ^ 生活 ^^^ | ||
| - | |[[internal_users_area: | + | |[[internal_users_area: |
| - | |[[internal_users_area: | + | |[[internal_users_area: |
| </ | </ | ||
| <ifauth @confidential> | <ifauth @confidential> | ||
| - | [[doku_maintenance|DokuWikiメンテ部屋]]\\ | + | [[doku_maintenance|🛠DokuWikiメンテ部屋]]\\ |
| ^ その他 ^^^ | ^ その他 ^^^ | ||
| - | |[[confidential_area|機密領域]] | + | |[[confidential_area|🔑機密領域]] |
| - | |[[kodomo_area|子供向けサーバー構築]] | + | |[[kodomo_area|👶子供向けサーバー構築]] |
| </ | </ | ||
| - | ====== Dokuwiki Top ====== | + | ====== |
| <php> | <php> | ||
| - | function curlGet($url) { | + | function curlGet($url, $referer='' |
| $curl = curl_init(); | $curl = curl_init(); | ||
| | | ||
| 行 69: | 行 163: | ||
| curl_setopt($curl, | curl_setopt($curl, | ||
| curl_setopt($curl, | curl_setopt($curl, | ||
| + | curl_setopt($curl, | ||
| | | ||
| $response = curl_exec($curl); | $response = curl_exec($curl); | ||
| 行 77: | 行 172: | ||
| //$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 '< |
| - | $cnhjpy = json_decode($json, | + | echo 'var quotes = ' . $json . ';'; |
| + | echo '</ | ||
| + | $usdjpy = []; //json_decode($json, | ||
| + | $cnhjpy = []; //json_decode($json, | ||
| + | // | ||
| + | // | ||
| + | // | ||
| // | // | ||
| 行 96: | 行 205: | ||
| echo '< | echo '< | ||
| - | echo '< | + | echo '< |
| echo '< | echo '< | ||
| echo '< | echo '< | ||
| 行 106: | 行 215: | ||
| echo '</ | echo '</ | ||
| - | echo '< | + | echo '< |
| echo '< | echo '< | ||
| echo '< | echo '< | ||
| 行 118: | 行 227: | ||
| echo '</ | echo '</ | ||
| </ | </ | ||
| - | [[https:// | + | < |
| ^ 関連サイト | ^ 関連サイト | ||
| - | | [[https:// | + | | <!--[[https:// |
| ^ DokuWikiの使い方 | ^ DokuWikiの使い方 | ||
| - | | [[wiki: | + | | [[wiki: |
| - | | [[http:// | + | | [[http:// |
| ^ カテゴリー別 | ^ カテゴリー別 | ||
| ^ OS ^^^^ | ^ OS ^^^^ | ||
| - | | [[linux|Linux 関連]] | + | | [[linux|🐣Linux 関連]] |
| - | | [[mac|Mac 関連]] | + | | [[mac|🍔🍟Mac 関連]] |
| - | | [[windows|Windows 関連]] | + | | [[windows|🍱Windows 関連]] |
| ^ 言語 | ^ 言語 | ||
| - | | [[python|Python | + | | [[python|🐍Python]] |
| - | | [[html_css|HTML5 + CSS3 関連]] | [[javascript|JavaScript | + | | [[html_css|🚾HTML |
| - | | [[programming_language|プログラミング言語関連]] | + | | [[c_cpp|🍋C/ |
| + | | [[golang|🐭Go]] | | [[java|☕Java]] | ||
| ^ テクノロジ | ^ テクノロジ | ||
| | [[web|Web 関連]] | | [[web|Web 関連]] | ||
| - | | [[algorithm|アルゴリズム]] | + | | [[algorithm|アルゴリズム]] |
| | [[ai|人工知能関連]] | | [[ai|人工知能関連]] | ||
| ^ その他 | ^ その他 | ||
| 行 146: | 行 256: | ||
| ^ 生活 | ^ 生活 | ||
| | [[cooking|🍳ハッカ~♪ のお料理]] | | [[cooking|🍳ハッカ~♪ のお料理]] | ||
| - | | [[lifehacker|🏡ハッカ~♪ の生活術]] | + | | [[lifehacker|🏡ハッカ~♪ の生活術]] |
| ^ 金融 | ^ 金融 | ||
| | [[currency|通貨関連]] | | [[currency|通貨関連]] | ||
| - | < | + | \\ |
| - | < | + | このサイトを広告なしで見るには...\\ |
| - | let tomoyan_net_app; | + | [[web: |
| - | require([' | + | [[web: |
| - | tomoyan_net_app = new Vue({ | + | の利用をお勧めします😉\\ |
| - | el: '# | + | |
| - | data: { | + | |
| - | user_agent: navigator.userAgent, | + | |
| - | ua_parser: '', | + | |
| - | display_resolution: | + | |
| - | remote_addr: | + | |
| - | }, | + | |
| - | created: function() { | + | |
| - | this.set_display_resolution(); | + | |
| - | + | ||
| - | let ua_json = (new UAParser()).getResult(); | + | |
| - | this.ua_parser = JSON.stringify(ua_json, | + | |
| - | }, | + | |
| - | computed: { | + | |
| - | ip_ver: function() { | + | |
| - | return this.remote_addr.indexOf(':' | + | |
| - | }, | + | |
| - | cpu_cores: function() { | + | |
| - | let cpu_cores = (!!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; | + | |
| - | }, | + | |
| - | window: | + | |
| - | let diffTime = (new Date()).getTime() - startTime; | + | |
| - | console.log(diffTime / 1000); | + | |
| - | }, | + | |
| - | }, | + | |
| - | mounted: function() { | + | |
| - | window.addEventListener(' | + | |
| - | }, | + | |
| - | beforeDestroy: | + | |
| - | window.removeEventListener(' | + | |
| - | }, | + | |
| - | }); | + | |
| - | }); | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | このサイトを広告なしで見るには [[web: | + | |