File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 6
6
const a = document . createElement ( "a" ) ;
7
7
const img = document . createElement ( "img" ) ;
8
8
9
- a . href = `${ baseUrl } /redirect/?url=${ url } ` ;
10
- a . target = " _blank";
11
- a . title = "Analyse ecoindex" ;
12
- img . src = `${ baseUrl } /badge/?theme=${ theme } &url=${ url } ` ;
13
- img . alt = "Badge ecoindex" ;
14
- img . width = "108px" ;
15
- img . height = "32px" ;
9
+ a . setAttribute ( " href" , `${ baseUrl } /redirect/?url=${ url } ` ) ;
10
+ a . setAttribute ( " target" , " _blank") ;
11
+ a . setAttribute ( " title" , "Analyse ecoindex" ) ;
12
+ img . setAttribute ( " src" , `${ baseUrl } /badge/?theme=${ theme } &url=${ url } ` ) ;
13
+ img . setAttribute ( " alt" , "Badge ecoindex" ) ;
14
+ img . setAttribute ( " width" , "108px" ) ;
15
+ img . setAttribute ( " height" , "32px" ) ;
16
16
a . appendChild ( img ) ;
17
17
badge . appendChild ( a ) ;
18
18
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments