|
@@ -38,21 +38,28 @@ def proc_file(fname,fname2,compcontent):
|
|
|
for l in lines:
|
|
|
# <div class="row mt-5" id="row">
|
|
|
if 'div' in l and 'class' in l and 'row mt-5' in l and 'id="row"' in l:
|
|
|
- fw.write('<div class="row mt-5" id="row_company" style="display:none">\n')
|
|
|
+ fw.write('<div class="row mt-5" id="row_company" style="display:none">\n')
|
|
|
fw.write(compcontent)
|
|
|
fw.write('</div>\n')
|
|
|
- fw.write('<div class="row mt-5" id="row_intro">\n')
|
|
|
+ fw.write('<div class="row mt-5" id="row_intro">\n')
|
|
|
|
|
|
if 'likeSee__state__filter' in l and 'likeSee__state__filter--offset'in l:
|
|
|
fw.write('<div class="likeSee__state__filter likeSee__state__filter--offset" id="id_offs">')
|
|
|
continue
|
|
|
|
|
|
if 'nav-link' in l and '設計師作品' in l and 'class' in l:
|
|
|
- fw.write('<a class="nav-link " onclick="c_intro();" id="a_intro">設計師作品</a>')
|
|
|
+ if 'active' in l:
|
|
|
+ fw.write('<a href="#" class="nav-link active" onclick="c_intro();" id="a_intro">設計師作品</a>')
|
|
|
+ else:
|
|
|
+ fw.write('<a href="#" class="nav-link " onclick="c_intro();" id="a_intro">設計師作品</a>')
|
|
|
+
|
|
|
continue
|
|
|
|
|
|
if 'nav-link' in l and '設計師公司簡介' in l and 'class' in l:
|
|
|
- fw.write('<a class="nav-link " onclick="c_comp();" id="a_company">設計師公司簡介</a>')
|
|
|
+ if 'active' in l:
|
|
|
+ fw.write('<a href="#" class="nav-link active" onclick="c_comp();" id="a_company">設計師公司簡介</a>')
|
|
|
+ else:
|
|
|
+ fw.write('<a href="#" class="nav-link " onclick="c_comp();" id="a_company">設計師公司簡介</a>')
|
|
|
continue
|
|
|
|
|
|
fw.write(l)
|