• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
no edit summary
Line 329: Line 329:  
end
 
end
   −
local function addBlurOptions(parts)
+
local blur_options = [=[<div style="float:right;text-align:right">
    table.insert(
  −
        parts,
  −
        [=[<div style="float:right">
   
<div class="toggle" data-target="nsfw" data-default="hide" data-classes="blur">
 
<div class="toggle" data-target="nsfw" data-default="hide" data-classes="blur">
 
<span class="toggle-show" style="cursor:pointer;color:#006cb0;">☑ Blur NSFW CG</span>
 
<span class="toggle-show" style="cursor:pointer;color:#006cb0;">☑ Blur NSFW CG</span>
Line 342: Line 339:  
</div>
 
</div>
 
</div>]=]
 
</div>]=]
    )
  −
end
      
function ShipPage.Gallery(frame, args)
 
function ShipPage.Gallery(frame, args)
Line 391: Line 386:  
     end
 
     end
 
     table.insert(result, "</div>")
 
     table.insert(result, "</div>")
     addBlurOptions(result)
+
     table.insert(result, blur_options)
 
     return table.concat(result, "\n")
 
     return table.concat(result, "\n")
 
end
 
end
Line 429: Line 424:  
     end
 
     end
 
     table.insert(result, "}}")
 
     table.insert(result, "}}")
     addBlurOptions(result)
+
     table.insert(result, blur_options)
 
     return table.concat(result, "\n")
 
     return table.concat(result, "\n")
 
end
 
end
cssedit, gkautomate
7,064

edits

Navigation menu