Chris Happy

1

votes
1

answer
39

views

Make div collaspible into a icon block

I am trying to make a div collapse into an icon when a certain screen width is reached. It is almost like responsive menus in Drupal, but for a div. I'm planning on using jQuery and CSS to accomplish this, unless there is a more elegant way, (e.g. a module for Drupal 8 that would do this). I'm wonde...
Chris Happy
4

votes
1

answer
733

views

How to install libraries without composer in drupal 8

In drupal 8, I am encountering modules that require libraries to be installed by Composer. However, I was wondering if I could skip the composer part and just install the libraries by hand. Would I ever be able to do this? (I have never gotten Composer to work)
Chris Happy
3

votes
2

answer
1.3k

views

Force Chrome to use subpixel rendering for floats

I am trying to have 8 images floated by each other with width: 25%; float: left; Here is a fiddle: https://jsfiddle.net/y06z0em1/ If you resize the section that the images are in, you will see that there are times when it breaks because some of the images are off by a fraction of a pixel. Could I...
Chris Happy
3

votes
1

answer
73

views

Element Order being Messed Up from after Moving Elements Twice

I'm making creating some Javascript code so that the overflowing menu links would move into a separate menu called more. The first time it is loaded, it works perfectly. However, when it is run again, things start shuffling... JSfiddle Snippet here: var tele = document.getElementById('teleporter'),...
Chris Happy
3

votes
3

answer
57

views

Replace Character with Count

Goal: Replace consecutive asterisks with the count of them surrounded by the sup tag. Input Hello, my name is Chris Happy*. My profile picture is a happy face.** *: It's not my actual name, but a nickname. **: Well, my 'last name' is happy, so I think it's fitting. Output Hello, my name is Chris Hap...
Chris Happy