This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).load(function () { | |
if($('.hs_cos_wrapper_type_form input[type="text"]').length === 0) { | |
var lang = $('html').attr('lang'); | |
var msg = 'If you are seeing this message you may have Adblock or Ghostery enabled. Please consider enabling Hubspot forms.'; | |
switch(lang) { | |
case 'nl': | |
case 'nl-be': | |
msg = 'Als je deze booschap ziet heb je waarschijnlijk Adblock of Ghostery. Gelieve Hubspot forms toe te laten.'; | |
break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\my_module\Form; | |
use Drupal\Component\Datetime\TimeInterface; | |
use Drupal\Core\Entity\EntityFormBuilderInterface; | |
use Drupal\Core\Entity\EntityManagerInterface; | |
use Drupal\Core\Entity\EntityTypeBundleInfoInterface; | |
use Drupal\Core\Extension\ModuleHandlerInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$form = [ | |
1 => [ | |
'step_name' => 'step 1', | |
'sections' => [ | |
[ | |
'section_name' => 'section 1', | |
'fields' => [ | |
'field_1' => [], | |
'field_2' => [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace DppBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Symfony\Component\Form\Extension\Core\Type\SubmitType; | |
use Symfony\Component\Form\Extension\Core\Type\TextType; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\Validator\Constraints\NotBlank; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var links = document.getElementsByClassName('fttoggle'); for(var i = 0; i < links.length; i++){ links[i].click(); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mariana = { | |
parse : function(json){ | |
return mariana.checkFragment(json); | |
}, | |
checkFragment : function(arr){ | |
var out = ''; | |
for(fragment of arr){ | |
switch(fragment.kind){ | |
case "element": out += mariana.element(fragment); break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$path = isset($_SERVER['REDIRECT_URL']) ? $_SERVER['REDIRECT_URL'] : $_SERVER['REQUEST_URI']; | |
if(strpos($path, '/search/book') !== false){ echo str_replace('/search/book/', '', $path); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.quanty-query(@number, @comparison, @content) when (@comparison = 'greater'), (@comparison = 'more'), (@comparison = '>'){ | |
&:nth-last-child(n @{number}):first-child { | |
&, | |
& ~ * { | |
@content(); | |
} | |
} | |
} | |
.quanty-query(@number, @comparison, @content) when (@comparison = 'fewer'), (@comparison = 'less'), (@comparison = '<'){ | |
&:nth-last-child(-n @{number}):first-child { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Http\Controllers; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
use App\Http\Requests\ContactFormRequest; | |
use App\Events\ContactFormValid; | |
class ContactController extends Controller { | |
public function getIndex() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link rel="import" href="indexMain.html"> | |
</head> | |
<body> | |
<section class="main"></section> | |
<script src="site.js"></script> | |
<script> | |
site.addTemplate('.main', 'indexMain.html'); | |
</script> |
NewerOlder