Init HTML and JS
189277
function pongOnTheFlyAddActionBtn(id, modalName, resourceURL, params) {
  log( "PoNG-OnTheFly", "modalFormAddActionBtn " + id );
  if ( !modalName ) {
    modalName = "OnTheFly";
  }
  var buttonLbl = modalName;
  if ( params && params.showConfig ) {
    buttonLbl = 'Show the configruation of this view...';
  }

  var html = "";
  log( "PoNG-OnTheFly", "Std Config Dlg:  " + modalName );
  var icon = "ui-icon-pencil";
  var paramsStr = 'null';
  if ( params ) {
    paramsStr = JSON.stringify( params )
  }
  var jscall = 'pongOnTheFlyOpenDlg( "' + id + '", "' + modalName + '", "'
      + resourceURL + '",' + paramsStr + ' );'
  var width = "600";
  if ( params && params.width ) {
    width = params.width;
  }
  var height = "600";
  if ( params && params.height ) {
    height = params.height;
  }
  html += '<div id="' + id + modalName + 'Dialog">' + resourceURL + " "
      + modalName + "</div>";
  log( "PoNG-OnTheFly", " cfg:  height: " + height + ", width: " + width );
  html += '<script>'
    + '$(function() { ' 
    + '  $( "#' + id + modalName + 'Dialog" ).dialog( '
    + '    { autoOpen: false, modal: true, height: '+height+', width: '+width+',' 
    + '      buttons: { "' + $.i18n( 'Save Configuration' ) + '": '
    + '        function() { '
    + '          pongOnTheFlySave( "'+id+'", "'+modalName+'", "'+resourceURL+'" );' 
    + '          $( this ).dialog( "close" );  ' 
    + '         } } ' 
    + '    } ); '
    + '} );</script>';
  html += '<button id="' + id + modalName + 'Bt">' + $.i18n( buttonLbl )
      + '</button>';
  html += '<script> '
    + ' $(function() { '  
    + '   $( "#' + id + modalName + 'Bt" ).button( '
    +'      { icons:{primary: "' + icon + '"}, text: false } '
    +'    ).click( function() { ' + jscall + ' } ); } ); '
    +'</script>';
  return html;
}
1066557
public function init()
	{
		list($name,$id)=$this->resolveNameID();
		if(isset($this->htmlOptions['id']))
			$id=$this->htmlOptions['id'];
		else
			$this->htmlOptions['id']=$id;
		if(isset($this->htmlOptions['name']))
			$name=$this->htmlOptions['name'];

		$this->registerClientScript();

		if($this->hasModel())
		{
			$field=$this->textArea ? 'activeTextArea' : 'activeTextField';
			echo CHtml::$field($this->model,$this->attribute,$this->htmlOptions);
		}
		else
		{
			$field=$this->textArea ? 'textArea' : 'textField';
			echo CHtml::$field($name,$this->value,$this->htmlOptions);
		}
	}
1309393
public function Initialize() {
      $this->Head = new HeadModule($this);
      $this->AddJsFile('jquery.js');
      $this->AddJsFile('jquery.livequery.js');
      $this->AddJsFile('jquery.form.js');
      $this->AddJsFile('jquery.popup.js');
      $this->AddJsFile('jquery.gardenhandleajaxform.js');
      $this->AddJsFile('global.js');
      $this->AddCssFile('admin.css');
      $this->MasterView = 'empty';
      parent::Initialize();
   }
538243
protected function Init()
    {
        $html = ContentHtml::Schema()->ByContent($this->content);
        $this->html = $html->GetHtml();
        return parent::Init();
    }
319951
function() {
			var self = this;

			if (typeof(settings.preinit) == "function") {
				settings.preinit(self);
			} else {
				plupload.each(settings.preinit, function(func, name) {
					self.bind(name, func);
				});
			}

			bindEventListeners.call(this);

			// Check for required options
			if (!settings.browse_button || !settings.url) {
				this.trigger('Error', {
					code : plupload.INIT_ERROR,
					message : plupload.translate('Init error.')
				});
				return;
			}

			initControls.call(this, settings, function(inited) {
				if (typeof(settings.init) == "function") {
					settings.init(self);
				} else {
					plupload.each(settings.init, function(func, name) {
						self.bind(name, func);
					});
				}

				if (inited) {
					self.runtime = o.Runtime.getInfo(getRUID()).type;
					self.trigger('Init', { runtime: self.runtime });
					self.trigger('PostInit');
				} else {
					self.trigger('Error', {
						code : plupload.INIT_ERROR,
						message : plupload.translate('Init error.')
					});
				}
			});
		}
477092
public function init()
    {
        parent::init();

        echo Html::beginTag('div', ['class' => 'portlet light', 'id' => $this->id]);
            echo Html::beginTag('div', ['class' => 'portlet-title tabbable-line']);
                echo Html::beginTag('div', ['class' => 'caption']);
                    echo $this->renderCaption();
                echo Html::endTag('div');

                echo $this->renderButtons();

            echo Html::endTag('div');

            echo Html::beginTag('div', ['class' => 'portlet-body']);
    }
1230706
public function init()
    {
        $this->assets = array(
            'js' => YII_DEBUG ? 'foundation/foundation.dropdown.js' : 'foundation.min.js'
        );

        Html::addCssClass($this->htmlOptions, Enum::DROPDOWN_LIST);
        ArrayHelper::addValue('data-dropdown-content', '-', $this->htmlOptions);

        if ($this->type === Enum::DROPDOWN_CONTENT) {
            Html::addCssClass($this->htmlOptions, Enum::CONTENT);
        }

        parent::init();
    }
110990
public function init()
    {
        $this->assets = array(
            'js' => YII_DEBUG ? 'foundation/foundation.clearing.js' : 'foundation.min.js'
        );
        Html::addCssClass($this->htmlOptions, Enum::CLEARING_THUMBS);
        ArrayHelper::addValue('data-clearing', 'data-clearing', $this->htmlOptions);
        parent::init();
    }
862655
public function init() {
        if (null != $this->url) {
            $this->pluginOptions['url'] = $this->url;
        } else {
            $this->pluginOptions['url'] = Url::to([$this->view->context->id.'/nodeMove']);
        }

		parent::init();
		$this->registerAssets();

        Html::addCssClass($this->options, 'dd');
		echo Html::beginTag('div', $this->options);

        if (null != $this->query) {
            $this->items = $this->prepareItems($this->query);
        }
		if (count($this->items) === 0) {
			echo Html::tag('div', '', ['class' => 'dd-empty']);
		}
	}
329297
function init(loader) {
  var loaderConfig = loaderUtils.getLoaderConfig(loader, 'web3Loader');
  web3 = require('./lib/web3')(loaderConfig.provider);
  config = mergeConfig(loaderConfig);
  isDebug = loader.debug;
}
1103222
function initPageObjects()
{
	if(isCanvas(document.body))
	{
		var newCanvas = new Canvas(document.body);
		newCanvas.initCanvas();
		canvases.push(newCanvas);
	}
	else
	{	
		var divs = document.getElementsByTagName('div');
		var i;
		for(i = 0; i < divs.length; i++)
		{
			if(isCanvas(divs[i]) && !findCanvas(divs[i].id))
			{
				var newCanvas = new Canvas(divs[i]);
				newCanvas.initCanvas();
				canvases.push(newCanvas);
				newCanvas.fitBlocks();
				newCanvas.alignBlocks();
			}
		}
	}
}
1015147
function init() {
        var items = doc.getElementsByTagName("script");

        // look for a script with a data-head-init attribute
        for (var i = 0, l = items.length; i < l; i++) {
            var dataMain = items[i].getAttribute("data-headjs-load");
            if (!!dataMain) {
                api.load(dataMain);
                return;
            }
        }
    }
1042726
function init(){

    // set NODE_ENV to --env value
    if (argv.env) {
        set('NODE_ENV', argv.env);
    }

    // load evironment files
    ['./.env', './config/.env', './env', './config/env'].map(file => {

        try {

            load(file);

        } catch(err) {

            if (env('DEBUG')) {
                console.error(`Env: ${err.message}`);
            }

        }

    });

    // set default vars
    set('NODE_ENV', 'development');

    ['DEVELOPMENT', 'PRODUCTION'].map(str => {
        set(str, get('NODE_ENV') === str.toLowerCase());
    });

}
35156
public function init()
    {
        $this->attachBehavior('TbWidget', new TbWidget);

        TbArray::defaultValue('id', $this->getId(), $this->htmlOptions);
        TbArray::defaultValue('role', 'dialog', $this->htmlOptions);
        TbArray::defaultValue('tabindex', '-1', $this->htmlOptions);

        TbHtml::addCssClass('modal', $this->htmlOptions);
        if ($this->fade) {
            TbHtml::addCssClass('fade', $this->htmlOptions);
        }

        if (is_array($this->footer)) {
            $this->footer = implode('&nbsp;', $this->footer);
        }

        $this->initOptions();
        $this->initEvents();

        echo TbHtml::openTag('div', $this->htmlOptions) . PHP_EOL;
        echo TbHtml::openTag('div', array('class' => 'modal-dialog' . $this->size)) . PHP_EOL;
        echo TbHtml::openTag('div', array('class' => 'modal-content')) . PHP_EOL;
        echo TbHtml::modalHeader($this->header);

        if (!isset($this->content)) {
            ob_start();
        }
    }
1027457
public function init()
    {
        $this->assets = array(
            'js' => YII_DEBUG ? 'foundation/foundation.topbar.js' : 'foundation.min.js'
        );

        Html::addCssClass($this->htmlOptions, Enum::NAV_TOPBAR);
        if ($this->fixed) {
            Html::addCssClass($this->htmlOptions, Enum::NAV_FIXED);
        }
        if ($this->sticky) {
            Html::addCssClass($this->htmlOptions, Enum::NAV_STICKY);
        }
        if ($this->containToGrid) {
            Html::addCssClass($this->htmlOptions, Enum::NAV_CONTAINED);
        }

        parent::init();
    }
193340
protected function InitForm()
    {
        $this->htmlCode = $this->LoadElement();
        $name = 'Code';
        $this->AddField(new Textarea($name, $this->htmlCode->GetCode()));
        $this->SetRequired($name);
        $this->AddCssClassField();
        $this->AddCssIDField();
        $this->AddSubmit();
    }
1280586
private static function init()
    {
        if (!static::$initialized) {
            $baseClass = Base::getInstance();
            static::$initialized = true;
            static::$tagsData = $baseClass->Html->Tags;
        }
    }