-
Notifications
You must be signed in to change notification settings - Fork 13
/
section blank attribute id add or change.html
65 lines (34 loc) · 1.17 KB
/
section blank attribute id add or change.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<script>
$( ( ) => {
/*
section blank attribute id add or change
License : < https://tinyurl.com/s872fb68 >
Version : 0.2.1
SS Version : 7.1
Fluid
Engine
Compatible : Yes
Dependencies : jQuery
By : Thomas Creedon < http://www.tomsWeb.consulting/ >
no user serviceable parts below
*/
const codeTitle = 'Section Blank Attribute Id Add or Change';
const version = '0.2.1';
const s = `${ codeTitle } v${ version }, ` +
'License < https://tinyurl.com/s872fb68 >, ' +
'Tom\'s Web Consulting < http://www.tomsWeb.consulting >';
console.log ( s );
$( 'x-twc-sbaiaoc' ).each ( function ( ) {
const $this = $( this );
const id = $this
.text ( )
.trim ( );
$this
.parents ( '.page-section' )
.attr ( 'id', id );
$this
.parents ( '.sqs-block, .fe-block' )
.remove ( );
} );
} );
</script>