|
@@ -100,12 +100,6 @@ def mid_pas(data, fol_num, include, in_c, toc_y):
|
|
|
elif fol:
|
|
elif fol:
|
|
|
fol_d = fol.groups()
|
|
fol_d = fol.groups()
|
|
|
if toc_y != 0:
|
|
if toc_y != 0:
|
|
|
- if folding_test == 0:
|
|
|
|
|
- data += '<script>function folding(num) { var fol = document.getElementById(\'folding_\' + num); \
|
|
|
|
|
- if(fol.style.display == \'inline-block\' || fol.style.display == \'block\') { fol.style.display = \'none\'; } \
|
|
|
|
|
- else { if(num % 3 == 0) { fol.style.display = \'block\'; } else { fol.style.display = \'inline-block\'; } } } \
|
|
|
|
|
- </script>'
|
|
|
|
|
-
|
|
|
|
|
data = com.sub("<div>" + fol_d[0] + " <div id='folding_" + str(fol_num + 1) + "' style='display: inline-block;'>" + \
|
|
data = com.sub("<div>" + fol_d[0] + " <div id='folding_" + str(fol_num + 1) + "' style='display: inline-block;'>" + \
|
|
|
"[<a href='javascript:void(0);' onclick='folding(" + str(fol_num + 1) + \
|
|
"[<a href='javascript:void(0);' onclick='folding(" + str(fol_num + 1) + \
|
|
|
"); folding(" + str(fol_num + 2) + "); folding(" + str(fol_num) + ");'>펼치기</a>]</div>" + \
|
|
"); folding(" + str(fol_num + 2) + "); folding(" + str(fol_num) + ");'>펼치기</a>]</div>" + \
|