_id
stringlengths
2
6
text
stringlengths
4
46k
title
stringclasses
1 value
d2601
Your property names (some of them) are invalid identifiers. You can quote it to fix the problem: rules: { "form-nocivique": { //Chrome complains here required: true, digits: true }, You can't use - in an identifier in JavaScript; it's a token (the "minus" operator).
d2602
You usually pass data between threads by writing the data into some shared data structure, like a queue that one thread is writing to and another thread is reading from. There are other explicit ways, however. For example, if you are trying to get data from a background thread to the UI thread, so you can invoke UI ...
d2603
ok i solved..the problem was what i thought...thaks to a comment by @Joachim Pileborg i've tried with this (NULL)... so thanks to you all `int p=0; int count=0; while(p!=-1){ if (tokens[count] != NULL){ printf("\nprinto: %s",tokens[count]); coun...
d2604
You forgot to add the ANE to your package. Project > Properties > Flex Build Packaging > (Your OS) > Native Extentions... Add...
d2605
Java was designed around the idea that finalizers could be used as the primary cleanup mechanism for objects that go out of scope. Such an approach may have been almost workable when the total number of objects was small enough that the overhead of an "always scan everything" garbage collector would have been acceptab...
d2606
Regular expressions, the way they are defined in mathematics, are actually string generators, not search patterns. They are used as a convenient notation for a certain class of sets of strings. (Those sets can contain an infinite number of strings, so enumerating all elements is not practical.) In a programming context...
d2607
A derives directly from Object class and neither A or Object overload == operator, so why doesn't next code cause an error? As with your other question, you seem to have some strange belief that whether an overloaded operator exists has any bearing on whether an operator can be meaningfully chosen. It does not. Again...
d2608
If i read well, you use gmp_div_q for rounding only? Then, you should check round(). The only case, that round() cannot cover is GMP_ROUND_ZERO, but you don't use that (and you could cover it with a simple if).
d2609
[ {name: Jhon1} {name: Jhon2} {name: Jhon3} ] B: [ {lastName: Pom1} {lastName: Pom2} {lastName: Pom3} ] Expected Result after merge : A: [ {name: Jhon1, lastName: Pom1} {name: Jhon2, lastName: Pom2} {name: Jhon3, lastName: Pom3} ] Concat method just merges the whole array in to one like this : A: [ ...
d2610
If you're upgrading a .NET 3.5 project that uses contracts to .NET 4.0, make sure you remove your reference to the Microsoft.Contracts assembly. The Microsoft.Contracts assembly provides code contracts for use in .NET 2.0 or 3.5 projects, but is provided by default with .NET 4.0 in mscorlib, so you don't need it. They ...
d2611
You need to match complete input by using .* on either side of your search pattern to be able to replace full line with just the captured group's back-reference. This sed should work: s='"version": "1.0.0",' sed 's/.*: "\([^"]*\)",.*/\1/' <<< "$s" 1.0.0 Or even this one: sed 's/.*: "\(.*\)",.*/\1/' <<< "$s" 1.0.0...
d2612
In your {{action...}} you should pass a real model, not a promise. To get a model from a promise you need to do something like this: var myMstore; that.store.find('mstore', mstoreId).then(function(mstore) { myMstore = mstore; });
d2613
Have you tried putting the super call in an else block so it is only called if the key is not KEYCODE_BACK ? /* Prevent app from being killed on back */ @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // Back? if (keyCode == KeyEvent.KEYCODE_BACK) { // Back ...
d2614
var app = angular.module("exApp",["ngSanitize"]); app.controller('ctrl', function($scope, $sce){ $scope.image = $sce.trustAsHtml('<img src="http://i67.tinypic.com/s6rmeo.jpg" style="width:200px;height:200px">'); }); <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <scri...
d2615
ERR_NAME_RESOLUTION_FAILED is a DNS failure error. If you have recently changed the DNS of your domain, it should take a while to become available in all regions. If you've already changed for quite a time, check if the computer where you are trying to access is having any other DNS errors / change DNS servers to known...
d2616
You'll want to use the Request.QueryString collection to get your rid parameter out: sdm.UpdateParameters["rid"].DefaultValue = Request.QueryString["rid"]; Using an indexer with Request will get you values out of the QueryString, Form, Cookies or ServerVariables collections, using Request.QueryString directly makes yo...
d2617
You don't really need to target your shipping methods, but instead customer shipping country: add_filter( 'woocommerce_cart_shipping_method_full_label', 'cart_shipping_method_full_label_filter', 10, 2 ); function cart_shipping_method_full_label_filter( $label, $method ) { // The targeted country code $targeted_...
d2618
So all of your input's name is record[], that will make the record[] value to be something like: ['name', 'ttl', 'type', 'prio', 'content','name', 'ttl', 'type', 'prio', 'content','name', 'ttl', 'type', 'prio', 'content'] Then you could try this: var final = []; var value = []; var i = 1; $("input[name='record[]']").e...
d2619
if the image loading failed, the callback will never call. but imported_image.sourceImg referent to the real img element, may be this will help. you can use it to detect the image load state. ex: imported_image.sourceImg.complete ;imported_image.sourceImg.onerror; A: Actually, the best way I've found to do this is che...
d2620
var arrays = new List<float[]>(); //....your filling the arrays var averages = arrays.Select(floats => floats.Average()).ToArray(); //float[] var counts = arrays.Select(floats => floats.Count()).ToArray(); //int[] A: Not sure I understood the question. Do you mean something like foreach (string line in File.ReadAllLi...
d2621
The spring Roo 1.x version provides the "Database Reverse Engineering" functionality. This add-on allows you to create an application tier of JPA 2.0 entities based on the tables in your database. DBRE will also incrementally maintain your application tier if you add or remove tables and columns. After generate the ent...
d2622
It is actually not related to arrays at all. This is a string problem. In PHP you can access and modify characters of a string with array notation. Consider this string: $a = 'foo'; $a[0] gives you the first character (f), $a[1] the second and so forth. Assigning a string this way will replace the existing character w...
d2623
One possible solution you could think of is to use localStorage For every user, who has already rate, you then store a boolean to the local storage. Then next time, it will be validated first Something like this: export default function App() { const [value, setValue] = React.useState(0); const hasRated = localStor...
d2624
you can do it with jquery but if you want to use pure css you can do something like this: [type=radio]:checked ~ .[CLASS_OF_THE_IMAGE] { outline: 2px solid #f00; }
d2625
Your ngIf is not referencing your service. I think you have a typo :) *ngIf="!userSettings.uberSettings?.uberActivated" instead of *ngIf="!uberSettings?.uberActivated"
d2626
#inside-cntr { overflow:hidden; zoom:1; } Explanation: http://work.arounds.org/clearing-floats/
d2627
So I figured this out, This code block need to be var posTex = new Veldrid.ImageSharp.ImageSharpTexture(posPath, false, true); var normalTex = new Veldrid.ImageSharp.ImageSharpTexture(normalPath, false, true); var posDeviceTex = posTex.CreateDeviceTexture(gd, gd.ResourceFactory); ...
d2628
You definitely can specify the width of the slider by using initWithFrame or changing the bounds of it. There has to be something else going on here that's preventing it from working.
d2629
Try: input:required:-moz-ui-invalid {box-shadow: 1px 2px 9px yellow}; See https://developer.mozilla.org/en/CSS/:invalid
d2630
You are running an asyncronous operation and still expecting it to block your call and wait for the response, this is one workaround that i have seen in the past, you hide your submit button and create another button that calls your ajax request, in the success of this request you click you hidden button, something lik...
d2631
Your code: <h1><xsl:value-of select="h1"/></h1> is OK, but you wrote it in a wrong place. You should use it in a template matching the parent tag (containg h1 tags) and add an empty template for h1, to prevent rendition of original h1 elements by the identity template. Look at the following script: <?xml version="1.0" ...
d2632
Late, late answer. You're totally fine. That's the proper way to do it, actually. See my blog post: http://touchlabblog.tumblr.com/post/24474750219/single-sqlite-connection/. Dig through my profile here. Lots of examples of this. ContentProvdier is just a lot of overhead and not needed unless you're sharing data ...
d2633
Try using MultiCell with some cell width combination, like this: public function Footer() { // Make more space in footer for additional text $this->SetY(-25); $this->SetFont('helvetica', 'I', 8); // Page number $this->Cell(0, 10, 'Seite '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, f...
d2634
When comparing floating point values, instead of doing this : if (log != -0.1) You should allow a little delta/tolerance on the value to account for floating point precision and the eventual value "change" you may get from passing it as a varying. So you should do something like : if (abs(log - (-0.1)) >= 0.0001) Here...
d2635
It should be $(this.element).
d2636
I had some good results reusing the Parse class from Fit/Fitnesse for getting data out of html tables.
d2637
Yes. You're going to want to use AbstractUser instead of AbstractBaseUser. Details are provided here: https://docs.djangoproject.com/en/1.8/topics/auth/customizing/#extending-django-s-default-user It creates a different table in the database (not auth_user), but still fully extends into the Django Admin quite elegantly...
d2638
As you mentioned in your question I review the website and find this code, after that I tested it on my android device and I figure out this is the answer. First, add this code to your page to show the file picker user interface <z-place inside="Body"> <FilePicker Id="MyFilePicker"></FilePicker> </z-place> T...
d2639
First of all, that looks like Pivotal's tc Server rather than Apache Tomcat. tc Server is based on Apache Tomcat but they are not exactlt the same and it always helps to provide the most accurrate information you can. There is something seriously wrong with your dependencies. Tomcat is detecting the following class hei...
d2640
To solve this, just modify the properties of .carousel-control-prev and .carousel-control-prev in the CSS. .carousel-control-prev, .carousel-control-next { height: 25%; top: 37.5%; }; <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iq...
d2641
You can do something like : public boolean collide(HasBounds a, HasBounds b){... With the interface : public interface HasBounds{ Rectangle getBounds(); } That you should define on your objects Arrow,Enemy etc... (you may already have an object hierarchy suitable for that). A: what do you think of this.. public...
d2642
I would do this using the default attribute in serializer fields. class PersonCommentSerialiser(serializers.HyperlinkedModelSerializer): author = serializers.PrimaryKeyRelatedField(read_only=True, default=CurrentUserDefault()) class Meta: model = PersonComment fields = ('url', 'body', 'person',...
d2643
The first solution is quite complex, you are not actually scaling the rectangle, but rather the projection matrix. The projection matrix is the series of mathematical operations that are applied before something is drawn to the screen. You can think of it as a camera, but it is far more complex than that. I actually pu...
d2644
Instead of set, you would use the splice array method, which will invoke the update.
d2645
You have several options. Read here: https://developer.android.com/guide/topics/data/data-storage.html In your case perhaps you can simply use SharedPreferences, here: https://developer.android.com/guide/topics/data/data-storage.html#pref SharedPreferences sharedPreferences = context.getSharedPreferences("FILE_NAME...
d2646
() => void, B: string } I use those to build the following class methods: declare class MyClass { myFunction(option: 'A', value: OptionsValueType['A']) myFunction(option: 'B', value: OptionsValueType['B']) myFunction(option: Exclude<Options, SpecificOptions>, value: number) } This works great: And I also ha...
d2647
Not a good idea in general but you can find discussion here : Blocking device rotation on mobile web pages How do I lock the orientation to portrait mode in a iPhone Web Application? a solution could be to rotate the content using CSS3 on orientation change event.
d2648
I hava the same problem。this is my solution。 first stop etcd service using systemctl systemctl stop etcd.service and then, check port is occupied lsof -i:2380 if occupied kill the pid kill -9 xxx last,start etcd service systemctl start etcd.service
d2649
Why are you against giving the UnitController a reference to its Map? public UnitController { private final Map map; public UnitController(Map map) { this.map = map; } } Now your UnitController has a reference to the Map. And this makes sense, if you think about it. What units can be controlled...
d2650
If you move to storyboards and autolayout you don't need to localize your UI, you just need to provide the localised strings files. A: Is localizing XIB files good because it is not possible/easy to use localized strings as titles for the controls in the interface builder? The backside is, when you need to show a ...
d2651
try this SELECT round(convert(float,17)/26,2) A: For whatever it's worth, when I'm doing something like this with an actual hard-coded value I just add a decimal place to one of the elements. A CAST() is better for a database field, but if you're typing something in just use a decimal ... SELECT 17/26, 17/26.0, 17.0...
d2652
You have the seconds, so just do something like SELECT secondsField / 3600 as 'hours' FROM tableName A: Here is an example of finding the difference between two timestamps in days. //Get current timestamp. $current_time = time(); //Convert user's create time to timestamp. $create_time = strtotime('2011-09-01 22:12...
d2653
The proper way is using an interface, it doesn't generate extra code when compiled to javascript and it offers you static typing capabilities: https://www.typescriptlang.org/docs/handbook/interfaces.html A: Here is an easy and naive implementation of what you're asking for: interface IDataNode { id: number; ti...
d2654
Yes, the height is 568. If you want to remove "letterboxing", please see this post: iPhone 5 letterboxing / screen resize
d2655
MailChimp's docs state that support for custom fonts in emails is limited. Elements to Avoid > Custom Fonts MailChimp’s Drag and Drop Editor provides web-safe fonts only. Most email clients don’t support CSS properties like @font-face, @import, and that import custom fonts into web pages. For consistent display, use w...
d2656
If you don't mind a little Win32, you can use SHGetSpecialFolderPath. [DllImport("shell32.dll")] static extern bool SHGetSpecialFolderPath(IntPtr hwndOwner, StringBuilder lpszPath, CSIDL nFolder, bool fCreate); enum CSIDL { COMMON_STARTMENU = 0x0016, COMMON_PROGRAMS = 0x0017 } static void Main(string[] args) { ...
d2657
If you make a new structure that might look like this: Public Structure Version Public ID As String Public TIME As String Public releaseTime As String Public type As String End Structure And then, maybe on a button click, write this Dim allVersions = New List(Of Version) Using wc = New WebClien...
d2658
I have tried your example as such: import unittest class A(unittest.TestCase): def test_a(self): self.assertEqual(1, 1) class B(A): def test_b(self): self.assertEqual(2, 3) if __name__ == '__main__': unittest.main() and it worked, this is test result: test_a (__main__.A) ... ok test_a (...
d2659
This is a bcrypt issue. Verify that you have uncommented bcrypt in your Gemfile, run bundle install, and then restarted the server. See: undefined method `key?' for nil:NilClass with bcrypt-ruby and has_secure_password
d2660
Why don't you try Picasso? It's as simple as this: Picasso .with(context) .load("https://pbs.twimg.com/profile_banners/169252109/1422362966") .into(imgView); And, you can also transform the Bitmap, applying tint, resizing to prevent memory issues, all that stuff.
d2661
Something like this is one way /* * Example of deleting X rows of data at a time from a table to avoid e.g. transaction log full on row organized talbes * */ BEGIN DECLARE DONE BOOLEAN DEFAULT FALSE; -- DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' BEGIN SET DONE = TRUE; END; -- WHILE NOT DO...
d2662
I have found the issue myself: * *Binding between server side and client side must be the same, hence I change both to basicHttpBinding *Service name is case sensitive, I changed "WcfClient.XXXService" to "wcfClient.XXXService" and it works now. Hope this can help others with the same difficulties =)
d2663
Using this code you can retrieve the PropertyInfos for the Something and for the Else property: Foo myObject = new Foo { bar = new Bar() }; // the FieldInfo for Foo.bar var barField = myObject.GetType().GetFields().First(); // the Bar instance, i.e. myObject.bar var barValue = barField.GetValue(myObject); var someth...
d2664
Your form is not submitting to the right route. Use form builder instead: <%= form_for @welcome do |f| %> <%= f.label :kind %> <%= f.text_field :kind %> <%= f.submit %> <% end %> This will put right route for form submission into your HTML
d2665
If you want that the avg values will be a tuple element (I don't see any reason to do so but maybe I don't have enough context), try: results={k: (sum(v)/len(v),) for k,v in students.items()} A: I was trying this but realized we had a problem summing a tuple of length 1. So you can do it this way. results = {} for k,...
d2666
Note: I haven't done this myself, so all the info below is purely from reading the documentation: The NSMetadataItem class has, among others, an attribute key called NSMetadataUbiquitousItemIsUploadedKey. Knowing this, you should be able to set up an NSMetadataQuery that notifies you once the item has been uploaded. A...
d2667
The code is poorly written regardless of which version of SQL you're using, because NULL is never "equal" to anything (even itself). It's "unknown", so whether or not it's equal (or greater than, or less than, etc.) another value is also "unknown". One thing that can affect this behavior is the setting of ANSI_NULLS. I...
d2668
The reason is this.props is not defined in a functional component. They receive the props as an argument. Change your TextField to take argument props and use props.title const TextField = (props) => { return ( <Text> {props.title} </Text> ) }
d2669
Notifications created by SL4A do nothing; they have no callback and can only alert users. Unfortunately there isn't really any way around this: BeanShell, JRuby and Rhino can make Java API calls (eg., to add the 'open my app when clicked' part) but can't use Contexts (which notifications require), and you could make yo...
d2670
The Dataflow SDK 2.x for Java and the Dataflow SDK for Python are based on Apache Beam. Make sure you are following the documentation as a reference when you update. Quotas can be an issue for slow running pipeline and lack of output but you mentioned those are fine. It seems there is a need to look at the job. I recom...
d2671
Considering the IntelliJ-git integration requires a git, make sure you have the latest (1.8.3+) installed. Otherwise, you should be able to use the same working tree/repo as the one used by Eclipse Egit. No special migration should be required.
d2672
A MAC address is nothing more than a number represented by 6 bytes written in hexdecimal form. So, converting the lower and upper limit of the MAC address could give you a manageable range of values to check with a single IF Sub Main Dim lowRange = "78:A1:83:24:40:00" Dim upRange = "78:A1:83:24:40:FF" Dim ...
d2673
Your data events are guaranteed to be emitted in order. See this answer for some additional details and some snippets from node's source code, which shows that indeed you will get your data events in order. The problem appears when you add asynchronous code in your data callback (setTimeout is an example of async code)...
d2674
The problem is that when a transformed variable is hardcoded, the marginaleffects package does not know that it should manipulate both the transformed and the original at the same time to compute the slope. One solution is to de-mean inside the formula with I(). You should be aware that this may make the model fitting ...
d2675
Below mysql function removes special characters from a string: DROP FUNCTION IF EXISTS replacespecialchars; DELIMITER | CREATE FUNCTION replacespecialchars( str CHAR(255) ) RETURNS CHAR(255) DETERMINISTIC BEGIN DECLARE i, len SMALLINT DEFAULT 1; DECLARE ret CHAR(255) DEFAULT ''; DECLARE c CHAR(1); SET len...
d2676
node will have to send a response object with the flagCount property if you want to use it in the frontend. If the flagCount is just getting saved in a database you do not need to use a get request for it. You could use a post request instead. A post request is useful to change database info. Node can respond with th...
d2677
There are lots of ways you could mean this. If you just want to panic, use .map(|x| x.unwrap()). If you want all results or a single error, collect into a Result<X<T>>: let results: Result<Vec<i32>, _> = result_i32_iter.collect(); If you want everything except the errors, use .filter_map(|x| x.ok()) or .flat_map(|x| x...
d2678
The trick for finding the day with the most entries is to group by day, then sort the groups by the number of entries in each group, then grab the first one. Dim query = Projects.GroupBy(Function(e) e.Name, Function(name, groupedEntries) New With { _ .Name = name, _ .TopDay = groupedEntries.GroupBy(Function(e) ...
d2679
You are trying to save d in csv which is not assigned anywhere. You are assigning d here only which will not be available outside here. Or you want to save c in csv but mistakenly you wrote d. Edit according to comment: with open('simplejson2.json', 'r') as f: str1=f.read() data_csv= csv.reader(f, delim...
d2680
According to the article, the FAQ section refers to the following known issue: * *After installing all the prerequisites I still do not see the Windows Phone Unit Test template. Workaround: install the prerequisites in order on the system drive. VS 2012 Windows Phone SDK 8.0 VS 2012 Update 2 CTP2 A: With the late...
d2681
Having php script run for an "infinite" amount of time is almost never appropriate. You can: * *set the page to reload using html (<meta http-equiv="refresh" content="5">) *set it to run and display via a cron script *reload the page regularly using javascript *something else I haven't thought of All of these w...
d2682
Explaining the workflow of your program. I tried your program & got this C:\Users\LENOVO\Desktop\so>python try.py Welcome to Treasure Island! Its your mission to find the treasure. You begin at a cross roads, do you go left or right? left You ran into enemies, attack? no You ran to the lake You found a long river, it l...
d2683
I received an email today that you now have visibility to active subscriptions. Log into iTunes connect, Go to "Sales and Trends" then select "Subscriptions" from the report chooser. Report Chooser
d2684
Following the clockwise/spiral rule, fun is a pointer to an array of two pointers to void. A: OK, basically, this is how typedef works: first imagine that the typedef isn't there. What remains should declare one or more variables. What the typedef does is to make it so that if you would declare a variable x of type T,...
d2685
The user will care about the message, because he wanted to do some modification, and the modifications have not been made. He will thus refresh the page to see the new state of the data, and will redo his modifications, or decide they should not be made anymore given the new state. Is it a problem if two users modify a...
d2686
Issue here is I closed the session. After removing it, everything works fine
d2687
You could use two nested iterations and build an new array for choosing as random result. function getNonConsecutives(array) { return array.reduce((r, a, i, aa) => r.concat(aa.slice(i + 2).map(b => [a, b])), []); } console.log(getNonConsecutives([ 0, 1, 2, 4 ])); .as-console-wrapper { max-height: 100% !impor...
d2688
You really are declaring an array of type Object and trying to cast it, which doesn't work. Instead, in your constructor, do: S = new Entry[capacity]; A: Why do you do a cast in S = (Entry[]) new Object[capacity]; and not just S = new Entry[capacity]; That would probably solve the problem. A: Your error appears ...
d2689
You can use NSNotificationCenter to send notification to enable/ disable the CLLocationManager's autopause attribute in another View Controller. Other approaches can be: * *Use class method, it is explained very well in this SO Answer *Use Delegates A: idk what' your problem with CLLocationManager, do you mean the...
d2690
When you receive a canonical registration ID in the response from Google, the message was accepted by the GCM server and the GCM server would attempt to deliver it to the device. Whether it is actually sent to the device depends on whether the device is available (i.e. connected to the internet). So if your server send...
d2691
It turned out to be a problem with my project not being located in the root.
d2692
It works with Jetty 9 and the jetty-maven-plugin: <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>${jetty.version}</version> <dependencies> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>${...
d2693
Use .classname to select based on any of the element's classed. When you use an attribute selector, it matches the entire attribute (unless you use modifiers like *=, but they're not appropriate here, either). $("coral-checkbox.natural").hide(); A: Use the class the selector instead of the attribute selector: $("cora...
d2694
You want to implement protected void onPostExecute (Result result) on your AsyncTask implementation. The result parameter will be whatever you return from the doInBackground method. Since this runs in the UI thread you can modify the UI how you want at that time. A: If you want to look at the value, then you need ...
d2695
You are right: the easiest way is to tell Mercurial to forget the files (by using hg forget). However Mercurial is not tracking directories, only files. You cannot add a directory and thus cannot forget it either. You probably have files under bin and res that have been added to the list of tracked files: those are the...
d2696
Infinispan allows you to chain cache stores together (by defining multiple stores within the persistence XML section), and each can be configured to either be synchronous or asynchronous (see here). However, transactional persistence stores are not supported (see here)
d2697
For matrix multiplication, the number of columns in the first matrix must be equal to the number of rows in the second matrix. If you want to check the no of rows of 1st matrix and the no. of columns of the 2nd matrix then change the if A_cols != B_rows to if A_rows != B_cols With your current code, it will print NOT P...
d2698
$array = array( 'first_name' => 'John', 'last_name' => 'Duei', 'product' => array( 'title' => 'Product #1', 'price' => '90', 'product' => array( 'title' => 'Product #2', 'price' => '90', 'product' => array( 'title' => 'Product #3', ...
d2699
So simple! -(void) searchBarCancelButtonClicked:(UISearchBar *)searchBar{ [self.searchDisplayController setActive:NO animated:YES]; self.navigationController popToViewController:UIViewControllerA animated:YES; } A: Create a CGPoint based on the scrollview's original center. In viewDidLoad() ...
d2700
First, you're not using "num" at the function, so it can be like this: function enlargeDisc(e) { let t = e.target if (t.classList.contains(styles.active)) { t.classList.remove(styles.active) discRender() } else { t.classList.add(styles.active) discRender() } ...