Moved the Agents into their own repo. Kept the agent.pl just for reference
This commit is contained in:
parent
22381be29a
commit
8680a02b13
18132 changed files with 0 additions and 2569420 deletions
|
|
@ -1,48 +0,0 @@
|
|||
$(document).ready(function()
|
||||
{
|
||||
// content to table translation
|
||||
$('.main .contactForm').each(function()
|
||||
{
|
||||
var form_selector = $(this);
|
||||
$(form_selector).prepend('<br>');
|
||||
$(form_selector.find('br')).each(function()
|
||||
{
|
||||
// skip if this br is in head paragraph
|
||||
if($(this).parent('p').length==0)
|
||||
{
|
||||
var $set = $();
|
||||
var nxt = this.nextSibling;
|
||||
while(nxt) {
|
||||
if(!$(nxt).is('br'))
|
||||
{
|
||||
$set.push(nxt);
|
||||
nxt = nxt.nextSibling;
|
||||
} else break;
|
||||
}
|
||||
$set.wrapAll('<tr><td></td></tr>');
|
||||
|
||||
// remove this br after wrap
|
||||
$(this).remove();
|
||||
}
|
||||
});
|
||||
$(form_selector.find('tr')).wrapAll('<table class="table table-sm table-striped" />');
|
||||
});
|
||||
|
||||
// remove main br
|
||||
$('.main > br').remove();
|
||||
|
||||
// remove empty rows
|
||||
$('.main .contactForm td').each(function()
|
||||
{
|
||||
if($(this).html().trim()=="")
|
||||
{
|
||||
$(this).parent('tr').remove();
|
||||
}
|
||||
});
|
||||
|
||||
// remove style attr from submit button
|
||||
$('.main .contactForm input[type="submit"]').removeAttr('style');
|
||||
|
||||
// remove style attribute from paragraphs
|
||||
$('.main p').removeAttr('style');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue