ウィジェットは次の言語に翻訳できます。
言語 | culture-slug |
---|---|
スペイン語 | es |
ウィジェットの言語を変更する場合は、次のテンプレートに従って iframe のソースを変更します。
https://pc-builds.com/{culture-slug}/embed/{widget-type} // For example {culture-slug} is replaced with "es" for Spanish
このコードを使用してボトルネック計算機を埋め込みます。
<script>
window.addEventListener('message', function(e) {
let pcb_iframe = document.getElementById("pc-builds-bottleneck-calculator");
if(e.data[0] == 'setFrameHeight-bottleneck-calculator') { pcb_iframe.style.height = e.data[1] + 'px'; }
}, false);
</script>
<iframe loading="lazy"
src="https://pc-builds.com/ja/embed/bottleneck-calculator"
id="pc-builds-bottleneck-calculator"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>
このコードを使用して、1 秒あたりのフレーム数計算機を埋め込みます。
<script>
window.addEventListener('message', function(e) {
let pcb_iframe = document.getElementById("pc-builds-fps-calculator");
if(e.data[0] == 'setFrameHeight-fps-calculator') { pcb_iframe.style.height = e.data[1] + 'px'; }
}, false);
</script>
<iframe loading="lazy"
src="https://pc-builds.com/ja/embed/fps-calculator"
id="pc-builds-fps-calculator"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>
このコードを使用して、ゲーム内のボトルネック計算機を埋め込みます。
<script>
window.addEventListener('message', function(e) {
let pcb_iframe = document.getElementById("pc-builds-games-bottleneck-calculator");
if(e.data[0] == 'setFrameHeight-games-bottleneck-calculator') { pcb_iframe.style.height = e.data[1] + 'px'; }
}, false);
</script>
<iframe loading="lazy"
src="https://pc-builds.com/ja/embed/games-bottleneck-calculator"
id="pc-builds-games-bottleneck-calculator"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>
このコードを使用して、電源ユニット計算機を埋め込みます。
<script>
window.addEventListener('message', function(e) {
let pcb_iframe = document.getElementById("pc-builds-psu-calculator");
if(e.data[0] == 'setFrameHeight-psu-calculator') { pcb_iframe.style.height = e.data[1] + 'px'; }
}, false);
</script>
<iframe loading="lazy"
src="https://pc-builds.com/ja/embed/psu-calculator"
id="pc-builds-psu-calculator"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>
このコードを使用してプロセッサ比較用のビューを埋め込みます。
<script>
window.addEventListener('message', function(e) {
let pcb_iframe = document.getElementById("pc-builds-compare-processors");
if(e.data[0] == 'setFrameHeight-compare-processors') { pcb_iframe.style.height = e.data[1] + 'px'; }
}, false);
</script>
<iframe loading="lazy"
src="https://pc-builds.com/ja/embed/compare-processors"
id="pc-builds-compare-processors"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>
このコードを使用して、グラフィック カード比較用のビューを埋め込みます。
<script>
window.addEventListener('message', function(e) {
let pcb_iframe = document.getElementById("pc-builds-compare-graphic-cards");
if(e.data[0] == 'setFrameHeight-compare-graphic-cards') { pcb_iframe.style.height = e.data[1] + 'px'; }
}, false);
</script>
<iframe loading="lazy"
src="https://pc-builds.com/ja/embed/compare-graphic-cards"
id="pc-builds-compare-graphic-cards"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>