Shineyrock web design & consultancy

Shineyrock

Gezocht op: "html" / 740 gevonden

Automate All the Things With Ansible: Part Two

…OverviewThis is part two of a two-part tutorial on Ansible. Part one is here. In this part, you will learn about roles (Ansible's building blocks), variables, loops, how to use roles in playbooks, and how to organize roles into a directory structure.RolesWhen you manage tens, hundreds or more servers, probably…


Introduction to Webpack: Part 1

…HTML file like so:<!doctype html> <html> <head> <meta charset="utf-8"> <title>Webpack fun</title> </head> <body> <h2></h2> <script src="bundle.js"></script> </body> </html>The important part here is the reference to bundle.js, which is what Webpack will be making for us. Also note the H2 element—we'll be using that later.Next, create two files in the same…


Building a CMS: rubyPress

…HTML converter. Slim is a Jade work-alike library, but it doesn’t include Jade’s macro definitions. Therefore, the macros used in the News and Blog post indexes are now normal Jade. Creating the rubyPress.rb File In the top directory, create the file rubyPress.rb and add the following code. I will comment…


Introduction to Webpack: Part 2

…HTML page. Install them like so:npm install style-loader css-loaderNext, we tell Webpack how to use them. In webpack.config.js, we need to add another object to the loaders array. In it we want to add a test to match only CSS files as well as specify which loaders to use.{ test:…


Uncommon jQuery Selectors

…html( $(this).html().replace(/Lorem Ipsum/g, "<span class='match-o'>Lorem Ipsum</span>") ); });The quotes around the string are optional. This implies that both $("section:contains('Lorem Ipsum')") and $("section:contains(Lorem Ipsum)") will be valid in the snippet above. I am only targeting the section element, so the Lorem Ipsum text inside the list elements should remain unchanged. Moreover,…


An Introduction to Slim Templates

…HTML and reveal only the essential parts—all without becoming too cryptic. Their core team tries to go even a step beyond that, and they are really concerned about the aesthetics of Slim code. Pretty good deal, don’t you think? Isn’t it much nicer if you can just glance at a…


Create a Find and Replace Plugin in jQuery

…html( $(this).html().replace(/Lorem Ipsum/g, "Replacement") ); }); }; }(jQuery));I am using regex to replace all the occurrences of Lorem Ipsum with Replacement. To be honest, in its current form, our plugin is totally useless. The users should at least have the option to find a piece of text and then replace…


How Dispatching Works in OpenCart

…HTML output in the $result variable, so the $action variable is set to false and the process ends. It’s the last else case.Recall that we returned false if the corresponding controller file was not found in the execute method of the Action class. In that case, the $action variable will…


How to Use Pantheon to Set Up and Maintain a Production-Safe WordPress Site

…html */ body { background-color: #ff0000; }Then, create a functions.php file with the following contents:<?php add_action( 'wp_enqueue_scripts', 'twentysixteen_child_enqueue_styles' ); function twentysixteen_child_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?>Next, upload the directory along with its contents to your Dev server's directory ~/code/wp-content/themes/.Now, when you visit the Appearance > Themes…


What’s the Difference Between Java and JavaScript?

…For those who are just getting started with programming, be it server-side or client-side, it's inevitable that you're going to come across the programming languages Java and JavaScript.If you've any experience programming in one or the other, then you know they aren't the same, and you probably know the difference…


Verfijn zoekopdracht

Bewaar deze zoekopdracht

Bewaarde zoekopdrachten

Je hebt nog geen bewaarde zoekopdrachten.