Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. Ingolme

    Columns positioning

    Yes, you're right, I missed that. In that case, the only change necessary is to set align-items to flex-start.
  3. Yesterday
  4. dsonesuk

    Columns positioning

    As far as I can make out reading the post made, he wants the opposite.
  5. Hello im Fariwar Again i want to convert .py file to .exe file im working on python3.8
  6. I see. You will need some special logic to run between Thursday and Saturday. It will use 60 hours but only after 12pm on Thursday. var THURSDAY = 4; var minDate = new Date(); var offset = 36; if(minDate.getDay() > THURSDAY || minDate.getDay() == THURSDAY && minDate.getHours() >= 12) { // Add 60 hours instead of 36 after noon on Thursday offset = 60; } minDate.setHours(minDate.getHours() + offset);
  7. I don't want saturday OR sunday to be available after noon on thursday. If I set it to 60 h then saturday will not be available before noon on thursday. It's hard to explain... For saturday there can be a time limit of 36 hours and for sunday there must be a time limit of 60 hours. How do I specify that with js? Two different time limits...?
  8. Please do not reply to old topics.
  9. I thought you did not want Saturday to be available after noon on Thursday. That would mean you have to extend the minimum permitted date to 60 hours from the current time.
  10. Ingolme

    Columns positioning

    Instead of grid, you could use flex box and set align-items to stretch. .wrapper { display: flex; align-items: stretch; } .sidebar { background-color: green; width: 10%; flex: 1 1 auto; } .archive-loop { background-color: red; width: 70%; flex: 1 1 auto; }
  11. Please keep your question to one topic. You can continue discussion in the following topic:
  12. They do indeed index the text itself. If you search for the relevant strings, the site shows in the search rankings. I do not know how long it takes to index a new .svg page or element.
  13. This depends on what you want NodeJs to do? Are you using NodeJS to work as a webserver?
  14. Here are some of the steps I would take to start rankin: Make sure your site is fully optimized. Meta descriptions Alt Tags H1 Headings Fix Redirects Fix 4XX Spam links Mobile friendly site Plan what your keywords are you want to rank for. Then you want to write blog posts that are unique and organic. Each one of your pages should have enough content/info so the user leaves feeling like they have enough information. Use videos and infographics in your blog posts Work on getting backlinks.
  15. Now try to change thickness of underline. Go on try.
  16. No matter how many times you ask the same question, the answer is always going to be YOU CAN'T!
  17. in css file you have try to this span.o { color:blue; padding:0; font-size:20px; font-weight:bold; text-decoration:underline; }
  18. Yes, but 36 hours don't remove the option to choose sunday after 12.00 on thursday because there are more than 36 h between thursday and sunday. So I need another way to stop sunday from being available from 12.00 on thursday... I can't add more hours than 36 because then saturday won't be available... 🥴
  19. benji8

    Columns positioning

    Hello, I am trying to build my web page and it seems I can't get the result I want. I have three boxes, two of them should be on the same line, as shown in the picture below: The code I wrote is the following: <!DOCTYPE html> <html> <head> <style> .wrapper { display: grid; grid-template-columns: 10% 70%; } .sidebar { background-color: green; width: 100px; height: 100px; } .archive-loop { background-color: red; width: 200px; } .footer { background-color: blue; width: 300px; } </style> </head> <body> <div class="wrapper"> <div class="sidebar">Sidebar</div> <div class="archive-loop">Loop</div> </div> <div class="footer">Footer</div> </body> </html> The problem is that Sidebar and Loop may have a variable length depending on the contents, and I want them to show the length they need to be, meaning that if the sidebar is shorter (or viceversa), I want it to appear shorter, as in the following picture: How can I achieve this result? Thank you very much in advance!
  20. Hello everyone i try to run cmd by html file please help me what command i write in html file to run cmd
  21. JMRKER

    Tab Menu

    In the last post, just add this one line: } openCity('click','London'); </script> before the closing script tag.
  22. Try using z-index for this one. Higher numbers go on top of lower ones.
  23. Give "MySQL Community Server" a try, and you'll be able to choose your OS after that.
  24. You could try inspecting the element in your browser and see what styles are applied to it. Might be some margins applied that you can't see.
  25. Funce

    Node and Mamp?

    Hey there, its all technically possible, and there are many solutions out there for merging technologies. If you can activate MySQL on its own, without any other webserver running, I don't believe it would be any different from accessing any other MySQL Database inside Node. I'm pretty sure Node won't know the difference either.
  26. So does your Database have the values 'Grognak', 'White', 'Ice Blue', 'Strength', and 'Charisma' in it? If it does, your script is currently working the way its written. Your SQL query will need adjusted to include the variables rather than those hard coded strings, you've put in. You might be interested in something called "Prepared Statements" for safe passing of data. Here's one of my examples I like to use: <?php //This line is for highlighting on the forum, just make sure the code below is inside a php block //PREPARED STATEMENTS - FUNCE //INSERT EXAMPLE $string_var = "String"; $double_var = 3.5; $int_var = 45 $sql = "INSERT INTO table (column1, column2, column3) VALUES (?, ?, ?)"; $stmt = mysqli_prepare($link, $sql); mysqli_stmt_bind_param($stmt, "sdi", $string_var, $double_var, $int_var); mysqli_stmt_execute($stmt); mysqli_stmt_close($stmt); Here's the Documentation on what I've used (Procedural Style is the one you want to look at) mysqli_prepare mysqli_stmt_bind_param <- The important one mysqli_stmt_execute mysqli_stmt_close
  27. Last week
  28. what's wrong in my code what can I change to make it work because for exemple if I have 3 products have same brand so in brand filter display the brand 3 times (gucci ,gucci,gucci with checkbox) and it's same for other filters and the checkbox not functional how to make it work ,should I add jquery but i don't know how please help I want when check one or multiple (size,color,brand) with checkbox display the products related to the product filters(size,color,brand) (for exemple check size :xl and color:red display products of xl and red)help please thank you and this is categorycontroller public function show($slug) { $category = $this->categoryRepository->findBySlug($slug); $pagination = 15; if (request()->category) { $products = Product::with('categories')->whereHas('categories', function ($query) { $query->whereIn('id', request('category'))->OrderBy('id', 'desc')->paginate($pagination); }); }; if (request()->brand) { $products = Product::where('brand_id', request('brand'))->OrderBy('id', 'desc')->paginate($pagination); }; if (request()->size) { $products = ProductAttribute::where('id','=',1)->where('id', request('size'))->OrderBy('id', 'desc')->paginate($pagination); }; if (request()->color) { $products = ProductAttribute::where('id','=',2)->where('id', request('color'))->OrderBy('id', 'desc')->paginate($pagination); }; $products = Product::OrderBy('name', 'asc')->paginate($pagination); return view('site.pages.category', compact('category','products')); } } category.blade.php: for brand: @foreach($products as $product) <div class="card-body"> <form> <label for="brand_id" class="form-check"> <input class="form-check-input" id="brand_id" value="{{$product->brand->id}}" type="checkbox"> <span class="form-check-label"> {{ $product->brand->name }} </span> </label> for size: @foreach($products as $product) @foreach($product->attributes as $attributeValue) @if ($attributeValue->attribute_id == 1) <form> <label for="size" class="form-check"> <input class="form-check-input" id="attribute" value="{{$attributeValue->value}}" type="checkbox"> <span class="form-check-label"> {{ $attributeValue->value }} </span> </label> for color: @foreach($products as $product) @foreach($product->attributes as $attribute) @foreach($product->attributes as $attributeValue) @if ($attribute->id == 2) <form> <label for="color" class="form-check"> <input class="form-check-input" id="{{$attributeValue->id}}" value="{{$attributeValue->value}}" type="checkbox"> <span class="form-check-label"> {{ $attributeValue->value}} </span> </label> like this image
  1. Load more activity
×
×
  • Create New...