This file contains 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
Decoupling content and presentation is all very well in theory, but is there a better way than going fully headless? | |
What do you do if you want Drupal to provide server-side rendered content pages, but you want to couple it with the rich interactivity of a modern JavaScript application? | |
What if you don't want the complexity of a headless CMS and a fully decoupled presentation layer? | |
This talk will provide an introduction to the Single Page Application Landing Page module - a framework for managing content and configuration for JavaScript applications that sit on Drupal pages. | |
More information at: |
This file contains 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
pa11y https://capgemini.github.io --ignore "warning;notice" | |
pa11y https://capgemini.github.io/categories --ignore "warning;notice" | |
pa11y https://capgemini.github.io/cloud/Managing-Cloud-Infrastructure-in-Amazon-Web-Service-using-VoiceOps/ --ignore "warning;notice" |
This file contains 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
Welcome to Pa11y | |
> PhantomJS browser created | |
> Testing the page "https://capgemini.github.io/cloud/Managing-Cloud-Infrastructure-in-Amazon-Web-Service-using-VoiceOps/" | |
Results for https://capgemini.github.io/cloud/Managing-Cloud-Infrastructure-in-Amazon-Web-Service-using-VoiceOps/: | |
• Notice: Check that the title element describes the document. | |
├── WCAG2AA.Principle2.Guideline2_4.2_4_2.H25.2 |
This file contains 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
[client] | |
#password = your_password | |
port = 3306 | |
socket = /var/run/mysqld/mysqld.sock | |
[mysqld] | |
port = 3306 | |
bind-address = 0.0.0.0 | |
datadir = /var/lib/mysql | |
socket = /var/run/mysqld/mysqld.sock |
This file contains 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 | |
// your connection | |
mysql_connect("localhost","root","root"); | |
mysql_select_db("d6"); | |
// convert | |
$result = mysql_query("SHOW TABLES"); | |
while ($row = mysql_fetch_array($result)) { | |
foreach ($row as $key => $table) { |
This file contains 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
drupal_add_js('//assets.codepen.io/assets/embed/ei.js', array( | |
'type' => 'external', | |
'scope' => 'footer', | |
)); |
This file contains 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
// alert('Hello world!'); |
This file contains 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
/** | |
* Table hover borders | |
*/ | |
table { | |
border-collapse: collapse; | |
} | |
tr { | |
border-bottom: 1px solid transparent; | |
border-top: 1px solid transparent; |
This file contains 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
/** | |
* Implements hook_js_alter(). | |
* | |
* Remove unwanted module JS. | |
*/ | |
function mytheme_js_alter(&$javascript) { | |
$removal_list = array( | |
'google_cse' => array( | |
'/google_cse.js', |
This file contains 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
/** | |
* Advent calendar doors. | |
*/ | |
body { | |
background: #000; | |
} | |
.views-row { | |
margin: 1em; | |
float: left; |
NewerOlder