「分鏡表.php」修訂間的差異
跳至導覽
跳至搜尋
(→待修改與測式) |
|||
| 行 1: | 行 1: | ||
[[分類:與AI協力製作影片]] | [[分類:與AI協力製作影片]] | ||
| + | ==theme.php== | ||
| + | 有一部分theme.php也需要更改,才能讓 分鏡表.php正常顯示,詳細修改如下 | ||
| + | *theme.php第198行: | ||
| + | *這邊是讓網址URL中,若含有「分鏡表」,就出現分鏡表核取方塊 | ||
| + | <pre>if(strstr($_SERVER['SCRIPT_NAME'],'分鏡表')){$html1.="<span style='font-size:smaller;color:#000'><input type='checkbox' id='story'/>分鏡表 </span>\n";}</pre> | ||
| + | *theme.php第214-218行: | ||
| + | *這邊是讓網址URL中,若含有「分鏡表」,就出現storyContent部分,裡面取出分鏡表.php的產出 | ||
| + | <pre> | ||
| + | if(strstr($_SERVER['SCRIPT_NAME'],'分鏡表')){$html1.="<nowiki><div id='storyContent' style='display:none;'></nowiki> ";<br/> | ||
| + | ob_start(); // 開啟輸出緩衝<br/> | ||
| + | include('/volume1/web/uploadFiles/分鏡表/分鏡圖.php') ;<br/> | ||
| + | $html1 .= ob_get_clean(); // 取得 include 產生的輸出內容<br/> | ||
| + | $html1.="</div>";} | ||
| + | </pre> | ||
| + | |||
| + | *theme.php第239-250行: | ||
| + | *這邊是讓寫成,若是上述核取方塊被打勾,就隱藏content,顯示storyContent。反之,若是沒有被打勾,就顯示content,隱藏storyContent。 | ||
| + | <pre> | ||
| + | document.getElementById('story').addEventListener('change', function() { | ||
| + | let storyContent = document.getElementById('storyContent'); | ||
| + | let content = document.getElementById('content'); | ||
| + | |||
| + | if (this.checked) { | ||
| + | storyContent.style.display = 'block'; | ||
| + | content.style.display = 'none'; | ||
| + | } else { | ||
| + | storyContent.style.display = 'none'; | ||
| + | content.style.display = 'block'; | ||
| + | } | ||
| + | }); | ||
| + | </pre> | ||
於 2025年2月19日 (三) 14:53 的修訂
theme.php
有一部分theme.php也需要更改,才能讓 分鏡表.php正常顯示,詳細修改如下
- theme.php第198行:
- 這邊是讓網址URL中,若含有「分鏡表」,就出現分鏡表核取方塊
if(strstr($_SERVER['SCRIPT_NAME'],'分鏡表')){$html1.="<span style='font-size:smaller;color:#000'><input type='checkbox' id='story'/>分鏡表 </span>\n";}
- theme.php第214-218行:
- 這邊是讓網址URL中,若含有「分鏡表」,就出現storyContent部分,裡面取出分鏡表.php的產出
if(strstr($_SERVER['SCRIPT_NAME'],'分鏡表')){$html1.="<div id='storyContent' style='display:none;'> ";<br/>
ob_start(); // 開啟輸出緩衝<br/>
include('/volume1/web/uploadFiles/分鏡表/分鏡圖.php') ;<br/>
$html1 .= ob_get_clean(); // 取得 include 產生的輸出內容<br/>
$html1.="</div>";}
- theme.php第239-250行:
- 這邊是讓寫成,若是上述核取方塊被打勾,就隱藏content,顯示storyContent。反之,若是沒有被打勾,就顯示content,隱藏storyContent。
document.getElementById('story').addEventListener('change', function() {
let storyContent = document.getElementById('storyContent');
let content = document.getElementById('content');
if (this.checked) {
storyContent.style.display = 'block';
content.style.display = 'none';
} else {
storyContent.style.display = 'none';
content.style.display = 'block';
}
});
待修改與測式
- 補縮圖 work
- 建子資料夾,功能會繼承
- 分鏡圖.txt 按右鍵編輯
- http 下載 本地端
- 本地編輯
- 存檔時 http 上傳