駅ずかん staff only

公開サイト 管理者ページ
編集ページ
たまプラーザ
路線インデックス
English

このサイトは非公開で、映像術の関係者用です。

対象外スポット

運営日誌

タグづけルール

ソースコード

<dl class="small"><dt>プロモーション リンクを含みます</dt><dd>公式サイトへのリンクより購入や申込されると、《たまプロ新聞》に報酬が支払われます。</dd></dl>

<img src="http://tamaplaza.news/1_image/button-pr.png" alt="広告リンク" style="width: 70px;">&nbsp;

構造化データ

以下はfunctions.phpより書き出しするため記述不要

<script type="application/ld+json">

管理ページ「Kozoka」テキストボックス

</script>

スティッキー代わり

上部の広告リストへ「.miniMap」と名前をつける

<div class="stickcyBlock"><a href="#pageTop"><img src="https://trainstation.jp/wp-content/uploads/2023/04/Rail-Map_Denentoshi-Line.png" alt="田園都市線路線図"/></a></div>

<script>let once = false; window.addEventListener('scroll', function () { taeget_position1 = document.querySelector('.miniMap').getBoundingClientRect().top; taeget_position2 = document.querySelector('#profile').getBoundingClientRect().top; });window.addEventListener("scroll", function () { const stickcyBlock = document.querySelector(".stickcyBlock"); const scroll = window.pageYOffset;if (taeget_position2 <= window.innerHeight && once !== true) {stickcyBlock.style.display = "none";}else if (taeget_position1 <= window.innerHeight && once !== true) { stickcyBlock.style.display = "block"; }else { stickcyBlock.style.display = "none"; } });</script>

参考:https://1-notes.com/javascript-event-when-the-element-enters-the-screen-by-scrolling/

プロモーション

<dl class="small"><dt>当ガイドはプロモーション リンクを含みます</dt><dd>公式サイトへのリンクより購入や申込されると、《駅ずかん》に報酬が支払われます。</dd></dl>

 

ソースコード

<!--初掲載:2021年3月25日-->

<div class="map">
</div>

<div class="migi small"></div>

<ruby>TAZ Cafe<rt>タズ カフェ</rt></ruby>

<dl class="daiji">
<dt>開催日</dt>
<dd><strong>8月28日(水)〜30日(金)</strong></dd>
<dt>前売券</dt>
<dd>&yen;2,400</dd>
<dt>当日券</dt>
<dd>&yen;2,500</dd>
</dl>

<table><tbody>
<tr><th scope="row">何線(駅番号)</th>
<td><a href="https://trainstation.jp/denentoshi-line/dt-route-map">東急田園都市線</a>(DT15)</td></tr>
<tr><th scope="row">改札の数</th><td>2つ(中央・東)</td></tr>
<tr><th scope="row">タクシー乗り場</th>
<td><a href="https://trainstation.jp/tamaplaza/taxi-dt15">北口・南口</a></td></tr>
<tr id="toilet">
<th scope="row">トイレ</th>
<td><ul>
<li>改札フロア</li>
</ul></td>
</tr>
<tr id="elevator">
<th scope="row">エレベーター</th><td><ol>
<li>改札ーホーム(渋谷方面)</li>
<li>改札ーホーム(中央林間方面)</li>
</ol></td>
</tr>
</tbody></table>

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "TrainStation",
"name": "長津田駅",
"telephone": "045-981-0476",
"address": {
"@type": "PostalAddress",
"streetAddress": "緑区長津田4-1-1",
"addressLocality": "横浜市",
"addressRegion": "神奈川県",
"addressCountry": "Japan",
"postalCode": "226-0027"
},
"image":"https://trainstation.jp/wp-content/uploads/map-nagatsuta-station.jpg",
"description": "改札口は近距離に2つで、出口は3つある田園都市線とこどもの国線の東急電鉄の駅。タクシーバス乗り場・一般車寄せは北口"
}
</script>

鉄道駅

<li><a href="https://tamaplaza.news/denentoshi-line">東急 田園都市線エリア</a></li>
<li><a href="https://tamaplaza.news/yokohama-municipal-subway">横浜市営地下鉄エリア</a></li>
<a href="https://trainstation.jp/odakyu-odawara-line">小田急線の駅ガイド</a>

<div class="station-name">なまえ駅</div>

<a href="https://tamaplaza.news/train-station/yokohama-municipal-subway">横浜市営地下鉄の駅</a>

<a href="https://tamaplaza.news/train-station/jr/yokohama-line">JR横浜線の駅</a>

<script type="application/ld+json"> { "@context": "http://schema.org", "@type": "TrainStation", "name": "町田駅(小田急小田原線)", "image":"https://trainstation.jp/wp-content/uploads/2021/03/map-shinyurigaoka-station.jpg", "description": "改札は対面する中央東口と中央西口の2つ。バスロータリーは南口、タクシー乗り場は北口と南口の2ヶ所", "address": "原町田6-12-20, Machida-shi, Tokyo-to, Japan", "telephone": "042-727-2200" } </script>

広告非表示

<style type="text/css">
.adb{display:none}
</style>

フォーム送信後

<style type="text/css">
form.sent p{display:none;}
</style>