seminar2/app/assets/stylesheets/seminar/content_style/9/js/content.js

13 lines
548 B
JavaScript
Raw Normal View History

2021-06-17 10:07:43 +00:00
$(document).ready(function(){
2021-07-14 04:57:47 +00:00
$('#main-content > * > [class*="-title"] ,[data-pp] > * > [class*="-title"], .page-module-title').each(function(i,h3){
2021-06-17 10:07:43 +00:00
if($(h3).prop('tagName').match(/(h1|h2|h3|h4)/i) && $(h3).next(".seminar_hr").length == 0){
$(h3).after("<hr class=\"seminar_hr\">")
}
})
2021-07-14 04:57:47 +00:00
$.each($('.layout-content-box h3,.layout-content-box h2,.layout-content-box h1'),function(){
if($(this).find("*").length == 0){
$(this).html("<span>"+$(this).html()+"</span>");
}
$(this).append('<span class="slash-background"></span>')
2021-06-17 10:07:43 +00:00
})
})