sharepoint online – SPO: modern script editor SPFX – change of suffix and css class and interruption of style

I am more of an administrator than a developer, but I have managed to get the SPFx Modern script editor working in my tenant to facilitate certain required aesthetic modifications. Unfortunately, it seems that CSS classes and identifiers are added with a suffix that changes each time the browser is refreshed.

Which CSS trick should I use in the SPFX Modern script editor to select .Content instead of .content-150 or Root ButtonCard instead of ButtonCard root-151? In both examples, if I create class linked (or id) css with these numbers added, it will break the next time I load the page because the number added to the element changes.

Thanks for any help!

Magento 1.9 CSS file does not load the home page

This project uses the aspire Premium theme. I want to customize the style of my own CSS code.
1, location of the added CSS file:
skin / frontend / rwd / aspire / css / customstyle.css

2, Added page.xml and local.xml (I know someone, but try adding the two files) app / design / frontend / base / default / layout / page.xml
app / design / frontend / rwd / aspire / layout / local.xml

css / customstyle.css

3, cache updated
This is not the view. I also get the URL via the customstyle.css access, unfortunately I cannot see the source of the home page. Help me please any other solution

script – Classic SP Online, loading js / css on demand, how do you use it?

I have a list of tests with the "AutocompleteValues" field. There is also a list with the same name, "AutoComplete Values". What I am doing is defining a drop-down list of autocomplete for text input.

enter description of image here

& # 39; Autocomplete & # 39; is used only for example here, because it uses three third-party scripts: Jquery (jquer.min.js file) and Jquery.UI (css + js files). I have these files deployed as script links.

enter description of image here

The only function I want to write down is "launcher ()" at the bottom – it calls the "Autocomplete" function.

"use strict";

var autocompleteDropdownValues = ();    // autocomplete values from 'AutocompleteValues ' list

// Add autocomplete dropdown 
function autocompleteSource(inputSelector, sourceListTitle) {

    var ctx = new SP.ClientContext(_spPageContextInfo.webAbsoluteUrl); // for autocomplete 'AutocompleteValues'
    var oList = ctx.get_web().get_lists().getByTitle(sourceListTitle);
    var camlQuery = new SP.CamlQuery();
    var autocompleteItems = oList.getItems(camlQuery);

    ctx.executeQueryAsync(function () {

        var listItemEnumerator = autocompleteItems.getEnumerator();

        while (listItemEnumerator.moveNext()) {
            var oListItem = listItemEnumerator.get_current();
            autocompleteDropdownValues.push(oListItem.get_item("Title"));   // fill autocomplete values array

        var accountsInput = jQuery(inputSelector);

            source: autocompleteDropdownValues,
            minLength: 0

        // show dropdown on click () {
            if (this.value == "") {
                accountsInput.autocomplete("search", "");

    }, onFail);

// Handle JSOM error
function onFail(sender, args) {
    var errorMessage = args.get_message();
    var len = args.length, i = 0;

    for (i; i < len; i++) {
        errorMessage += "
" + args(i); } console.log("%cError in sharepoint jsom: " + errorMessage, "background:red;color:white;"); } function launcher() { // These files deployed as ScriptLinks: // 1004http://server/sites/developer/Style Library/projects/scripts/scripts/jquery-ui-1.12.1.custom/jquery-ui.min.css // 1005~sitecollection/Style Library/projects/scripts/scripts/jquery.min.js // 1015~sitecollection/Style Library/projects/scripts/scripts/jquery-ui-1.12.1.base/jquery-ui.min.js SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function () { autocompleteSource("input(id^='AutocompleteValues_')", "AutocompleteValues"); }); } _spBodyOnLoadFunctionNames.push("launcher");

Here is the code. It works well if I have all the files deployed as script links. But I want to change everything for loading "on demand"

So I abandoned Scriptlinks and used this code instead.

Question 1: It works for js. But is this approach correct or is there a better way to load some js files on demand?
Question 2: How do you load CSS correctly? I used jQuery.getScript here for example, but it doesn't work for CSS. There are many ways, but they look like hacks.

function launcher() {

    // 1004 http://server/sites/developer/Style Library/projects/scripts/scripts/jquery-ui-1.12.1.custom/jquery-ui.min.css
    // 1005 ~sitecollection/Style Library/projects/scripts/scripts/jquery.min.js
    // 1015 ~sitecollection/Style Library/projects/scripts/scripts/jquery-ui-1.12.1.base/jquery-ui.min.js

    SP.SOD.loadMultiple(("sp.js"), function () {

        // 1) is it best-practice to load js files one after another?
        SP.SOD.registerSod("jquery.min.js", _spPageContextInfo.siteAbsoluteUrl + "/Style Library/projects/scripts/jquery.min.js");
        SP.SOD.loadMultiple(("jquery.min.js"), function () {

            console.log("jquery.min.js loaded");

            // 2)  jQuery.getScript does not work for CSS. What do You use for CSS on-demand?
            jQuery.getScript(_spPageContextInfo.siteAbsoluteUrl + "/Style Library/projects/scripts/scripts/jquery-ui-1.12.1.custom/jquery-ui.min.css", function (data, textStatus, jqxhr) {

                console.log("jquery-ui.min.css loaded");

                SP.SOD.registerSod("jquery-ui.min.js", _spPageContextInfo.siteAbsoluteUrl + "/Style Library/projects/scripts/jquery-ui-1.12.1.custom/jquery-ui.min.js");
                SP.SOD.loadMultiple(("jquery-ui.min.js"), function () {
                    console.log("jquery-ui.min.js loaded");

                    autocompleteSource("input(id^='AutocompleteValues_')", "AutocompleteValues");




sharepoint online – For SPO, is there currently a way to change CSS classes for modern pages?

For modern SharePoint Online pages, is there a way to modify the modern CSS existing on the pages (I think the fabric user interface is the actual style, not just the CSS style used to give classic pages a modern look)? Not what I saw with extensions, where they add CSS to the top of pages overall instead of alerting existing classes in CSS on modern pages.

Any direction would be appreciated (Extensions? SPFX? React Script Editor? PowerShell?) I asked quite a few questions and there just isn't a lot of information to be this subject. There are special web parts that its

Among the many pages I have made, the one below needs the left navigation bar removed, white space all around the deleted titles, top links removed, the full screen cursor extended , etc. I really want to be able to completely modify the UI fabric as I want. Looks like Microsoft doesn't want that … YET.

enter description of image here

SharePoint Designer is a step for SPO. Placement

Cross-platform language using HTML and CSS for interface design

I am wondering if there is a multiplatform programming language that compiles its source code into an executable program, which means that its source code is protected from prying eyes and uses HTML / CSS as its interface design interface user.

So I am wondering if there is something like electron.js which has its source code protected as the electron ASAR files are extremely insecure.

Beginner – Creation of a concentration memory game with CSS / HTML / JavaScript

I'm doing a pre-cohort class for the General Assembly and I'm a bit stuck. I have tried to make several changes, but it never seems to work properly. I'm trying to use Career Karma for help, but if you've ever worked with them, it all depends on how many people are online and who actually knows what they're doing .

Here are the instructions:

Instructions p. 7/10

Instructions p. 8/10

And here is what I have finished so far. I have tried many different coding changes and none of them seem to work.

What i have so far

If … else statements seem to be the worst.

console.log("User flipped " + cardTwo);

if (cardsInPlay.length === 2) {
if (cardsInPlay(0) === cardsInPlay(1) || 
    cardsInPlay(0) === cardsInPlay(2) ||
    cardsInPlay(0) === cardsInPlay(3) ||
    cardsInPlay(0) === cardsInPlay(4) ||
    cardsInPlay(1) === cardsInPlay(2) ||
    cardsInPlay(1) === cardsInPlay(3) ||
    cardsInPlay(1) === cardsInPlay(4) ||
    cardsInPlay(2) === cardsInPlay(3) ||
    cardsInPlay(2) === cardsInPlay(4) ||
    cardsInPlay(3) === cardsInPlay(4))
    alert("You found a match!")
    alert("Sorry, try again.")}

What are the simple and effective CSS tricks to customize the modern share point with the script editor?

Battery exchange network

The Stack Exchange network includes 175 question and answer communities, including Stack Overflow, the largest and most reliable online community for developers who want to learn, share knowledge and develop their careers.

Visit Stack Exchange

css – Split Slick Slideshow add autoplay

I found a cursor that I liked on:

The only thing I would like to add is a autoplay functionality. The good thing is that it uses a Slick slideshow, which has a autoplay functionality, so I thought it was going to be easy. I added the autoplay argument, which worked, but some transitions correspond to the bad images … I'm almost sure it's because of the fanciful transitions, but I don't know what to change. Can anyone help me get things done?

My code is below, this is the original code with the autoplay argument:

var $slider = $('.slideshow .slider'),
maxItems = $('.item', $slider).length,
dragging = false,

sliderRight = $('.slideshow').clone().addClass('slideshow-right').appendTo($('.split-slideshow'));

rightItems = $('.item', $sliderRight).toArray();
reverseItems = rightItems.reverse();
$('.slider', $sliderRight).html('');
for (i = 0; i < maxItems; i++) {
    $(reverseItems(i)).appendTo($('.slider', $sliderRight));


    vertical: true,
    verticalSwiping: true,
    arrows: false,
    infinite: true,
    dots: true,
    autoplay: true,
    speed: 1000,
    cssEase: 'cubic-bezier(0.7, 0, 0.3, 1)'
}).on('beforeChange', function(event, slick, currentSlide, nextSlide) {

    if (currentSlide > nextSlide && nextSlide == 0 && currentSlide == maxItems - 1) {
        $('.slideshow-right .slider').slick('slickGoTo', -1);
        $('.slideshow-text').slick('slickGoTo', maxItems);
    } else if (currentSlide < nextSlide && currentSlide == 0 && nextSlide == maxItems - 1) {
        $('.slideshow-right .slider').slick('slickGoTo', maxItems);
        $('.slideshow-text').slick('slickGoTo', -1);
    } else {
        $('.slideshow-right .slider').slick('slickGoTo', maxItems - 1 - nextSlide);
        $('.slideshow-text').slick('slickGoTo', nextSlide);
}).on("mousewheel", function(event) {
    if (event.deltaX > 0 || event.deltaY < 0) {
    } else if (event.deltaX < 0 || event.deltaY > 0) {
}).on('mousedown touchstart', function(){
    dragging = true;
    tracking = $('.slick-track', $slider).css('transform');
    tracking = parseInt(tracking.split(',')(5));
    rightTracking = $('.slideshow-right .slick-track').css('transform');
    rightTracking = parseInt(rightTracking.split(',')(5));
}).on('mousemove touchmove', function(){
    if (dragging) {
        newTracking = $('.slideshow-left .slick-track').css('transform');
        newTracking = parseInt(newTracking.split(',')(5));
        diffTracking = newTracking - tracking;
        $('.slideshow-right .slick-track').css({'transform': 'matrix(1, 0, 0, 1, 0, ' + (rightTracking - diffTracking) + ')'});
}).on('mouseleave touchend mouseup', function(){
    dragging = false;

$('.slideshow-right .slider').slick({
    swipe: false,
    vertical: true,
    arrows: false,
    infinite: true,
    autoplay: true,
    speed: 950,
    cssEase: 'cubic-bezier(0.7, 0, 0.3, 1)',
    initialSlide: maxItems - 1

    swipe: false,
    vertical: true,
    arrows: false,
    infinite: true,
    autoplay: true,
    speed: 900,
    cssEase: 'cubic-bezier(0.7, 0, 0.3, 1)'

The new Codepen:

thank you,

css – Navigation interruptions in the top bar in Safari

My navigation should be in the lower black bar when the user is at the top of the page, and when the user scrolls down, the navigation switches to the upper bar. My problem only appears in Safari, when the user scrolls down then goes up, my navigation in the top bar hangs. Any ideas how to fix this problem? enter description of image here

Include css / js paths in php files in different directory paths and redirect

I have not programmed in PHP for a long time and I assemble a basic application and two problems / doubts have appeared:

1 – FIRST DOUBT: I get involved in how to get CSS styles, as I had thought, add the label to a header.php file and include it in all the other .php pages without having to repeat the code.
Project structure:

Project structure

In my index.php I have: (More or less)


In header.php, I have html head and I have tried several things like:


    <link href = "/assets/css/my-css-file.css "rel =" style sheet ">

2: (I left two openings of php code so that it looks better and understood but it is really with an echo)

<? php
echo & # 39;"
<? php
echo & # 39;"

I put "echo" to see the value of ROOT_PATH and the path that shows me is correct so it must be replaced but something is not right because the styles are not loaded on the web.

I had this problem because in header.php I had absolute paths:

Only when in index.php I include ("header.php"); It works fine but if I open the file PROJECT / modules / admin / index.php and I also include the header, the paths are not correct as it tries to to access:
PROJECT / modules / admin / assets / js / my-file-js.js and this is not correct.

How would this problem be resolved or what other means can I implement to accomplish this task?

2 – SECOND DOUBT: Something similar to the above, but with redirects. Currently, I have another module (as discussed in the first question) called "admin", where I have two files admin.php and index.php. The case is that index.php is accessible if you are administrator but admin.php, it should not be visible and redirect and it works well with redirection.

Well, the question I have is to use or reuse the redirect for the logout button that always appears, on all pages and via a drop-down menu with an html tag.

The file that redirects, I called "functions.php" at the root (master /) and it's something like this:

What I need is to call via a link to a redirect function or a way to redirect by reusing the code. Or if there is another simpler than safe method that everyone uses.

PS: I know that including the header.php before the label is wrong, so I would also like to have other options for doing this.

Thank you