@@ -1137,23 +1137,6 @@ const SF = (function () {
11371137
11381138 return guide ;
11391139 } ;
1140-
1141- sf . createFooter = function ( config ) {
1142- sf . assert ( config , 'createFooter(config) requires a configuration object' ) ;
1143-
1144- var footer = sf . el ( 'footer' , { className : 'sf-footer' } ) ;
1145- if ( config . links ) {
1146- config . links . forEach ( function ( link , i ) {
1147- if ( i > 0 ) footer . appendChild ( sf . el ( 'span' , { className : 'sf-vr' } ) ) ;
1148- footer . appendChild ( sf . el ( 'a' , { href : link . url , target : '_blank' } , link . label ) ) ;
1149- } ) ;
1150- }
1151- if ( config . version ) {
1152- footer . appendChild ( sf . el ( 'span' , { style : { marginLeft : 'auto' } } , config . version ) ) ;
1153- }
1154- return footer ;
1155- } ;
1156-
11571140} ) ( SF ) ;
11581141/* ============================================================================
11591142 SolverForge UI — Timeline Rail
@@ -1873,3 +1856,27 @@ const SF = (function () {
18731856 } ;
18741857
18751858} ) ( SF ) ;
1859+ /* ============================================================================
1860+ SolverForge UI — Footer Factory
1861+ ============================================================================ */
1862+
1863+ ( function ( sf ) {
1864+ 'use strict' ;
1865+
1866+ sf . createFooter = function ( config ) {
1867+ sf . assert ( config , 'createFooter(config) requires a configuration object' ) ;
1868+
1869+ var footer = sf . el ( 'footer' , { className : 'sf-footer' } ) ;
1870+ if ( config . links ) {
1871+ config . links . forEach ( function ( link , i ) {
1872+ if ( i > 0 ) footer . appendChild ( sf . el ( 'span' , { className : 'sf-vr' } ) ) ;
1873+ footer . appendChild ( sf . el ( 'a' , { href : link . url , target : '_blank' } , link . label ) ) ;
1874+ } ) ;
1875+ }
1876+ if ( config . version ) {
1877+ footer . appendChild ( sf . el ( 'span' , { style : { marginLeft : 'auto' } } , config . version ) ) ;
1878+ }
1879+ return footer ;
1880+ } ;
1881+
1882+ } ) ( SF ) ;
0 commit comments